summaryrefslogtreecommitdiff
path: root/src/trg-remote-prefs-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/trg-remote-prefs-dialog.c')
-rw-r--r--src/trg-remote-prefs-dialog.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/trg-remote-prefs-dialog.c b/src/trg-remote-prefs-dialog.c
index 7fecd9b..7a5beca 100644
--- a/src/trg-remote-prefs-dialog.c
+++ b/src/trg-remote-prefs-dialog.c
@@ -382,7 +382,7 @@ static GObject *trg_remote_prefs_dialog_constructor(GType type,
GObject *object;
TrgRemotePrefsDialogPrivate *priv;
JsonObject *session;
- GtkWidget *notebook;
+ GtkWidget *notebook, *contentvbox;
object = G_OBJECT_CLASS
(trg_remote_prefs_dialog_parent_class)->constructor(type,
@@ -390,6 +390,8 @@ static GObject *trg_remote_prefs_dialog_constructor(GType type,
priv = TRG_REMOTE_PREFS_DIALOG_GET_PRIVATE(object);
session = trg_client_get_session(priv->client);
+ contentvbox = gtk_dialog_get_content_area(GTK_DIALOG(object));
+
gtk_window_set_title(GTK_WINDOW(object), _("Remote Preferences"));
gtk_window_set_transient_for(GTK_WINDOW(object), GTK_WINDOW(priv->parent));
gtk_window_set_destroy_with_parent(GTK_WINDOW(object), TRUE);
@@ -425,7 +427,7 @@ static GObject *trg_remote_prefs_dialog_constructor(GType type,
gtk_container_set_border_width(GTK_CONTAINER(notebook), GUI_PAD);
- gtk_box_pack_start(GTK_BOX(GTK_DIALOG(object)->vbox), notebook, TRUE, TRUE,
+ gtk_box_pack_start(GTK_BOX(contentvbox), notebook, TRUE, TRUE,
0);
return object;