[gnome-control-center] Making xkb options fill the full popup dlg
- From: Sergey V. Udaltsov <svu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Making xkb options fill the full popup dlg
- Date: Sun, 12 Dec 2010 00:43:31 +0000 (UTC)
commit 953d7db853ef7384508072c9a004603f408dc2fc
Author: Sergey V. Udaltsov <svu gnome org>
Date: Sun Dec 12 00:40:29 2010 +0000
Making xkb options fill the full popup dlg
https://bugzilla.gnome.org/show_bug.cgi?id=636902
panels/region/gnome-region-panel-options-dialog.ui | 2 +-
panels/region/gnome-region-panel-xkbot.c | 12 ++++++++----
2 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/panels/region/gnome-region-panel-options-dialog.ui b/panels/region/gnome-region-panel-options-dialog.ui
index 0691444..01c9349 100644
--- a/panels/region/gnome-region-panel-options-dialog.ui
+++ b/panels/region/gnome-region-panel-options-dialog.ui
@@ -11,7 +11,7 @@
<property name="default_height">400</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
- <object class="GtkVBox" id="dialog-vbox4">
+ <object class="GtkVBox" id="dialog_vbox">
<property name="visible">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="orientation">vertical</property>
diff --git a/panels/region/gnome-region-panel-xkbot.c b/panels/region/gnome-region-panel-xkbot.c
index aa5eda2..333aa18 100644
--- a/panels/region/gnome-region-panel-xkbot.c
+++ b/panels/region/gnome-region-panel-xkbot.c
@@ -375,8 +375,10 @@ void
xkb_options_load_options (GtkBuilder * dialog)
{
GtkWidget *opts_vbox = WID ("options_vbox");
- GSList *expanders_list;
+ GtkWidget *dialog_vbox = WID ("dialog_vbox");
+ GtkWidget *options_scroll = WID ("options_scroll");
GtkWidget *expander;
+ GSList *expanders_list;
current1st_level_id = NULL;
current_none_radio = NULL;
@@ -403,7 +405,10 @@ xkb_options_load_options (GtkBuilder * dialog)
expanders_list = expanders_list->next;
}
- gtk_widget_show_all (opts_vbox);
+ /* Somewhere in gtk3 the top vbox in dialog is made non-expandable */
+ gtk_box_set_child_packing (GTK_BOX (dialog_vbox), options_scroll,
+ TRUE, TRUE, 0, GTK_PACK_START);
+ gtk_widget_show_all (dialog_vbox);
}
static void
@@ -443,8 +448,7 @@ xkb_options_popup_dialog (GtkBuilder * dialog)
chooser = CWID ("xkb_options_dialog");
gtk_window_set_transient_for (GTK_WINDOW (chooser),
- GTK_WINDOW (WID
- ("region_dialog")));
+ GTK_WINDOW (WID ("region_dialog")));
xkb_options_load_options (chooser_dialog);
g_signal_connect (chooser, "response",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]