[mutter] resize-popup: don't use a GtkFrame
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] resize-popup: don't use a GtkFrame
- Date: Sun, 10 Feb 2013 19:25:57 +0000 (UTC)
commit c3ffd28bb6115936b7a6d59f39ebf2cd66a58328
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Jan 28 16:31:18 2013 -0500
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
src/ui/resizepopup.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/src/ui/resizepopup.c b/src/ui/resizepopup.c
index 133285c..e3a6d9c 100644
--- a/src/ui/resizepopup.c
+++ b/src/ui/resizepopup.c
@@ -70,8 +70,6 @@ meta_ui_resize_popup_free (MetaResizePopup *popup)
static void
ensure_size_window (MetaResizePopup *popup)
{
- GtkWidget *frame;
-
if (popup->size_window)
return;
@@ -85,17 +83,12 @@ ensure_size_window (MetaResizePopup *popup)
gtk_window_set_resizable (GTK_WINDOW (popup->size_window),
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 ("");
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]