[gtk+] dialog: set suggested-action even on dialogs without header bars



commit fb8f36f34d3940d90d0bbc3569edb5995cbb0283
Author: William Jon McCann <william jon mccann gmail com>
Date:   Thu Feb 27 09:08:53 2014 -0500

    dialog: set suggested-action even on dialogs without header bars
    
    It is up to the theme whether these should be styled.

 gtk/gtkdialog.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 7efdebd..04ae4a9 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -1125,8 +1125,7 @@ gtk_dialog_set_default_response (GtkDialog *dialog,
       if (rd && rd->response_id == response_id)
         {
          gtk_widget_grab_default (widget);
-          if (dialog->priv->constructed && dialog->priv->use_header_bar == 1)
-            gtk_style_context_add_class (gtk_widget_get_style_context (widget), 
GTK_STYLE_CLASS_SUGGESTED_ACTION);
+          gtk_style_context_add_class (gtk_widget_get_style_context (widget), 
GTK_STYLE_CLASS_SUGGESTED_ACTION);
         }
 
       tmp_list = g_list_next (tmp_list);


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