[gtk/wip/exalm/buttons: 32/32] menubutton: Don't hardcode label<->arrow spacing




commit 47b5c68df4e23727886e335db88d989366e4dc2b
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Jun 24 23:12:31 2021 +0500

    menubutton: Don't hardcode label<->arrow spacing
    
    This should come from the theme instead, as it does for icon<->arrow.

 gtk/gtkmenubutton.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkmenubutton.c b/gtk/gtkmenubutton.c
index bce3e32eaf..5e5e70acae 100644
--- a/gtk/gtkmenubutton.c
+++ b/gtk/gtkmenubutton.c
@@ -1017,7 +1017,7 @@ gtk_menu_button_set_label (GtkMenuButton *menu_button,
   if (gtk_menu_button_get_icon_name (menu_button))
     g_object_notify_by_pspec (G_OBJECT (menu_button), menu_button_props[PROP_ICON_NAME]);
 
-  box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
+  box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
   label_widget = gtk_label_new (label);
   gtk_label_set_xalign (GTK_LABEL (label_widget), 0);
   gtk_label_set_use_underline (GTK_LABEL (label_widget),


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