[bijiben] settings dialog: pack providers to control window vsize
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] settings dialog: pack providers to control window vsize
- Date: Sun, 1 Mar 2015 22:53:26 +0000 (UTC)
commit 09e6fab1399ca1286568da727fc90c8f35a3579d
Author: Pierre-Yves Luyten <py luyten fr>
Date: Sun Mar 1 23:53:17 2015 +0100
settings dialog: pack providers to control window vsize
src/bjb-settings-dialog.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/bjb-settings-dialog.c b/src/bjb-settings-dialog.c
index 5e653b5..82064c6 100644
--- a/src/bjb-settings-dialog.c
+++ b/src/bjb-settings-dialog.c
@@ -443,7 +443,7 @@ bjb_settings_dialog_constructed (GObject *object)
BjbSettingsDialog *self;
GtkDialog *dialog; //also self
BjbSettingsDialogPrivate *priv;
- GtkWidget *area, *grid, *hbox, *page;
+ GtkWidget *area, *grid, *hbox, *page, *scroll, *viewport;
GtkWindow *window;
GApplication *app;
@@ -498,7 +498,11 @@ bjb_settings_dialog_constructed (GObject *object)
gtk_stack_add_titled (priv->stack, page, "edition", _("Note Edition"));
page = create_page_primary (self);
- gtk_stack_add_titled (priv->stack, page, "provider", _("Primary Book"));
+ scroll = gtk_scrolled_window_new (NULL, NULL);
+ viewport = gtk_viewport_new (NULL, NULL);
+ gtk_container_add (GTK_CONTAINER (viewport), page);
+ gtk_container_add (GTK_CONTAINER (scroll), viewport);
+ gtk_stack_add_titled (priv->stack, scroll, "provider", _("Primary Book"));
gtk_widget_show_all (area);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]