[gnome-screenshot] screenshot: don't pack buttons in a size group



commit fed91a9eac4a41e68f97338f99f4728b290c7ca5
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Feb 16 08:01:19 2014 -0800

    screenshot: don't pack buttons in a size group

 src/screenshot-interactive-dialog.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/src/screenshot-interactive-dialog.c b/src/screenshot-interactive-dialog.c
index 33dac8f..6f957ca 100644
--- a/src/screenshot-interactive-dialog.c
+++ b/src/screenshot-interactive-dialog.c
@@ -482,7 +482,6 @@ screenshot_interactive_dialog_new (CaptureClickedCallback f, gpointer user_data)
       gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (button_box), button, TRUE);
     }
 
-  size_group = gtk_size_group_new (GTK_ORIENTATION_VERTICAL);
 
   button = gtk_button_new_with_mnemonic (_("Take _Screenshot"));
   gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
@@ -494,7 +493,6 @@ screenshot_interactive_dialog_new (CaptureClickedCallback f, gpointer user_data)
   data->callback = f;
   data->user_data = user_data;
   g_signal_connect (button, "clicked", G_CALLBACK (capure_button_clicked_cb), data);
-  gtk_size_group_add_widget (size_group, button);
   gtk_header_bar_pack_end (GTK_HEADER_BAR (header_bar), button);
   gtk_widget_set_can_default (button, TRUE);
   gtk_widget_grab_default (button);
@@ -506,13 +504,10 @@ screenshot_interactive_dialog_new (CaptureClickedCallback f, gpointer user_data)
   gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
   context = gtk_widget_get_style_context (button);
   gtk_style_context_add_class (context, "text-button");
-  gtk_size_group_add_widget (size_group, button);
   gtk_header_bar_pack_start (GTK_HEADER_BAR (header_bar), button);
   g_signal_connect_swapped (button, "clicked",
                             G_CALLBACK (gtk_widget_destroy), dialog);
 
-  g_object_unref (size_group);
-
   gtk_widget_show_all (dialog);
 
   return dialog;


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