[gtk+] Don't use depeprecated api



commit 56719c63633d2a9a49f4ba038c21e23d13bf39e4
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Dec 1 16:54:20 2013 -0500

    Don't use depeprecated api
    
    GtkPrintUnixDialog and testtitlebar were still using
    gtk_widget_set_margin_left/right. Switch them over to
    gtk_widget_set_margin_start/end.

 gtk/gtkprintunixdialog.c |    2 +-
 tests/testtitlebar.c     |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index 20bbfe0..ea66c67 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -1260,7 +1260,7 @@ wrap_in_frame (const gchar *label,
   frame = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
   gtk_box_pack_start (GTK_BOX (frame), label_widget, FALSE, FALSE, 0);
 
-  gtk_widget_set_margin_left (child, 12);
+  gtk_widget_set_margin_start (child, 12);
   gtk_widget_set_halign (child, GTK_ALIGN_FILL);
   gtk_widget_set_valign (child, GTK_ALIGN_FILL);
 
diff --git a/tests/testtitlebar.c b/tests/testtitlebar.c
index 1d21649..cce9270 100644
--- a/tests/testtitlebar.c
+++ b/tests/testtitlebar.c
@@ -26,8 +26,8 @@ main (int argc, char *argv[])
   title = gtk_label_new (NULL);
   gtk_label_set_markup (GTK_LABEL (title), "<b>Welcome to Facebook - Log in, sign up or learn more</b>");
   gtk_label_set_ellipsize (GTK_LABEL (title), PANGO_ELLIPSIZE_END);
-  gtk_widget_set_margin_left (title, 6);
-  gtk_widget_set_margin_right (title, 6);
+  gtk_widget_set_margin_start (title, 6);
+  gtk_widget_set_margin_end (title, 6);
   gtk_header_bar_set_custom_title (GTK_HEADER_BAR (header), title);
 
   button = gtk_button_new ();


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