[metacity] fixedtip.c: don't use deprecated GtkMisc



commit e00996a983a4d217a79c52e85ce2c7918ce1baea
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Oct 4 15:36:16 2014 +0300

    fixedtip.c: don't use deprecated GtkMisc

 src/ui/fixedtip.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/ui/fixedtip.c b/src/ui/fixedtip.c
index bf21515..5030a99 100644
--- a/src/ui/fixedtip.c
+++ b/src/ui/fixedtip.c
@@ -102,7 +102,8 @@ meta_fixed_tip_show (int screen_number,
 
       label = gtk_label_new (NULL);
       gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
-      gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5);
+      gtk_widget_set_halign (label, GTK_ALIGN_CENTER);
+      gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
       gtk_widget_show (label);
       
       gtk_container_add (GTK_CONTAINER (tip), label);


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