diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2011-09-20 19:26:28 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2011-09-20 19:26:28 +0000 |
commit | 8cfc6187fdcfbc32e37aec8326451af2ae7eb893 (patch) | |
tree | 4b951cd1b5d21ab4dcbe325a93622cead12790bb /src/trg-remote-prefs-dialog.c | |
parent | 0a7facc248a7aa20fb10f85d01606a42ce00d1f9 (diff) |
some stuff to build against gtk3, mostly some changes from accessing an objects struct for members to using functions, due to these structs now being gsealed.
Diffstat (limited to 'src/trg-remote-prefs-dialog.c')
-rw-r--r-- | src/trg-remote-prefs-dialog.c | 6 |
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; |