mirror of
https://github.com/brl/mutter.git
synced 2024-12-01 12:20:47 -05:00
resize-popup: don't use a GtkFrame
We want this to look like a normal tooltip - start with removing the GtkFrame around its shape. https://bugzilla.gnome.org/show_bug.cgi?id=692741
This commit is contained in:
parent
1c680be11a
commit
c3ffd28bb6
@ -70,8 +70,6 @@ meta_ui_resize_popup_free (MetaResizePopup *popup)
|
|||||||
static void
|
static void
|
||||||
ensure_size_window (MetaResizePopup *popup)
|
ensure_size_window (MetaResizePopup *popup)
|
||||||
{
|
{
|
||||||
GtkWidget *frame;
|
|
||||||
|
|
||||||
if (popup->size_window)
|
if (popup->size_window)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -85,17 +83,12 @@ ensure_size_window (MetaResizePopup *popup)
|
|||||||
gtk_window_set_resizable (GTK_WINDOW (popup->size_window),
|
gtk_window_set_resizable (GTK_WINDOW (popup->size_window),
|
||||||
TRUE);
|
TRUE);
|
||||||
|
|
||||||
frame = gtk_frame_new (NULL);
|
|
||||||
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_OUT);
|
|
||||||
|
|
||||||
gtk_container_add (GTK_CONTAINER (popup->size_window), frame);
|
|
||||||
|
|
||||||
popup->size_label = gtk_label_new ("");
|
popup->size_label = gtk_label_new ("");
|
||||||
gtk_misc_set_padding (GTK_MISC (popup->size_label), 3, 3);
|
gtk_misc_set_padding (GTK_MISC (popup->size_label), 3, 3);
|
||||||
|
|
||||||
gtk_container_add (GTK_CONTAINER (frame), popup->size_label);
|
gtk_container_add (GTK_CONTAINER (popup->size_window), popup->size_label);
|
||||||
|
|
||||||
gtk_widget_show_all (frame);
|
gtk_widget_show (popup->size_label);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user