[gnome-screenshot] screenshot: don't set text-button style class manually



commit 6c0b231ce5adda9304246636db7986dd8a861f2d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Feb 16 08:02:09 2014 -0800

    screenshot: don't set text-button style class manually
    
    GTK already does this for us.

 src/screenshot-interactive-dialog.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/screenshot-interactive-dialog.c b/src/screenshot-interactive-dialog.c
index 6f957ca..a55c41a 100644
--- a/src/screenshot-interactive-dialog.c
+++ b/src/screenshot-interactive-dialog.c
@@ -486,7 +486,6 @@ screenshot_interactive_dialog_new (CaptureClickedCallback f, gpointer user_data)
   button = gtk_button_new_with_mnemonic (_("Take _Screenshot"));
   gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
   context = gtk_widget_get_style_context (button);
-  gtk_style_context_add_class (context, "text-button");
   gtk_style_context_add_class (context, "suggested-action");
   data = g_new (CaptureData, 1);
   data->widget = dialog;
@@ -502,8 +501,6 @@ screenshot_interactive_dialog_new (CaptureClickedCallback f, gpointer user_data)
 
   button = gtk_button_new_with_mnemonic (_("_Cancel"));
   gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
-  context = gtk_widget_get_style_context (button);
-  gtk_style_context_add_class (context, "text-button");
   gtk_header_bar_pack_start (GTK_HEADER_BAR (header_bar), button);
   g_signal_connect_swapped (button, "clicked",
                             G_CALLBACK (gtk_widget_destroy), dialog);


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