[gnome-builder] gui: set minimum width for buttons



commit 6f91dd32c0e2d5b3177a609ca849075db3785195
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jan 16 19:45:57 2020 -0800

    gui: set minimum width for buttons

 src/libide/gui/ide-notification-list-box-row.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/gui/ide-notification-list-box-row.c b/src/libide/gui/ide-notification-list-box-row.c
index a53aecf1e..dd7e32033 100644
--- a/src/libide/gui/ide-notification-list-box-row.c
+++ b/src/libide/gui/ide-notification-list-box-row.c
@@ -105,8 +105,12 @@ setup_buttons_locked (IdeNotificationListBoxRow *self)
                                  "visible", TRUE,
                                  NULL);
 
+
           if (!self->compact)
-            dzl_gtk_widget_add_style_class (GTK_WIDGET (button), "suggested-action");
+            {
+              g_object_set (button, "width-request", 100, NULL);
+              dzl_gtk_widget_add_style_class (GTK_WIDGET (button), "suggested-action");
+            }
           else
             dzl_gtk_widget_add_style_class (GTK_WIDGET (button), "circular");
 


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