[metacity] tabpopup.c: don't use deprecated GtkAlignment



commit 5aeb6e922c1c8b6a76f8d8ed435fb72bf1a4e98a
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri Oct 3 22:16:47 2014 +0300

    tabpopup.c: don't use deprecated GtkAlignment

 src/ui/tabpopup.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/ui/tabpopup.c b/src/ui/tabpopup.c
index 6bd7d1f..a6ca434 100644
--- a/src/ui/tabpopup.c
+++ b/src/ui/tabpopup.c
@@ -219,7 +219,6 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
   int height;
   GtkWidget *grid;
   GtkWidget *vbox;
-  GtkWidget *align;
   GList *tmp;
   GtkWidget *frame;
   int max_label_width; /* the actual max width of the labels we create */
@@ -300,12 +299,7 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
   gtk_container_add (GTK_CONTAINER (frame),
                      vbox);
 
-  align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
-
-  gtk_box_pack_start (GTK_BOX (vbox), align, TRUE, TRUE, 0);
-
-  gtk_container_add (GTK_CONTAINER (align),
-                     grid);
+  gtk_box_pack_start (GTK_BOX (vbox), grid, TRUE, TRUE, 0);
 
   popup->label = gtk_label_new ("");
 
@@ -342,7 +336,7 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
           if (te->blank)
             {
               /* just stick a widget here to avoid special cases */
-              image = gtk_alignment_new (0.0, 0.0, 0.0, 0.0);
+              image = gtk_label_new ("");
             }
           else if (outline)
             {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]