[gnome-control-center] background: Make switcher button as tall as other buttons
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] background: Make switcher button as tall as other buttons
- Date: Fri, 15 Aug 2014 14:52:10 +0000 (UTC)
commit 71c76e96882d9596e4d5add54e9b75311cd7ecd0
Author: Bastien Nocera <hadess hadess net>
Date: Fri Aug 15 16:49:43 2014 +0200
background: Make switcher button as tall as other buttons
https://bugzilla.gnome.org/show_bug.cgi?id=734803
panels/background/cc-background-chooser-dialog.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/panels/background/cc-background-chooser-dialog.c
b/panels/background/cc-background-chooser-dialog.c
index 4c5b812..6aa604d 100644
--- a/panels/background/cc-background-chooser-dialog.c
+++ b/panels/background/cc-background-chooser-dialog.c
@@ -426,6 +426,7 @@ cc_background_chooser_dialog_init (CcBackgroundChooserDialog *chooser)
gchar *pictures_dir_basename;
gchar *pictures_dir_uri;
GtkTargetList *target_list;
+ GtkSizeGroup *size_group;
chooser->priv = CC_CHOOSER_DIALOG_GET_PRIVATE (chooser);
priv = chooser->priv;
@@ -593,6 +594,11 @@ cc_background_chooser_dialog_init (CcBackgroundChooserDialog *chooser)
gtk_dialog_set_default_response (GTK_DIALOG (chooser), GTK_RESPONSE_OK);
gtk_dialog_set_response_sensitive (GTK_DIALOG (chooser), GTK_RESPONSE_OK, FALSE);
+ button = gtk_dialog_get_widget_for_response (GTK_DIALOG (chooser), GTK_RESPONSE_CANCEL);
+ size_group = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL);
+ gtk_size_group_add_widget (size_group, button);
+ gtk_size_group_add_widget (size_group, hbox);
+
on_view_toggled (GTK_TOGGLE_BUTTON (button1), chooser);
gtk_widget_show_all (vbox);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]