[gtk+] GtkAccelLabel: Drop use of GtkMisc



commit 4d002d5e6a818080c5f3f1b14d034aa97c9de238
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu May 22 22:53:17 2014 -0400

    GtkAccelLabel: Drop use of GtkMisc
    
    Just use 0 instead of xpad.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730613

 gtk/gtkaccellabel.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkaccellabel.c b/gtk/gtkaccellabel.c
index fbd0943..ec4d17a 100644
--- a/gtk/gtkaccellabel.c
+++ b/gtk/gtkaccellabel.c
@@ -397,7 +397,6 @@ gtk_accel_label_draw (GtkWidget *widget,
 
       gint x;
       gint y;
-      gint xpad;
 
       context = gtk_widget_get_style_context (widget);
       label_layout = gtk_label_get_layout (GTK_LABEL (accel_label));
@@ -427,14 +426,10 @@ gtk_accel_label_draw (GtkWidget *widget,
 
       cairo_restore (cr);
 
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-      gtk_misc_get_padding (GTK_MISC (widget), &xpad, NULL);
-G_GNUC_END_IGNORE_DEPRECATIONS
-
       if (direction == GTK_TEXT_DIR_RTL)
-        x = xpad;
+        x = 0;
       else
-        x = gtk_widget_get_allocated_width (widget) - xpad - ac_width;
+        x = gtk_widget_get_allocated_width (widget) - ac_width;
 
       gtk_label_get_layout_offsets (GTK_LABEL (accel_label), NULL, &y);
 


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