summaryrefslogtreecommitdiff
path: root/src/trg-torrent-props-dialog.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-20 19:26:28 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-09-20 19:26:28 +0000
commit8cfc6187fdcfbc32e37aec8326451af2ae7eb893 (patch)
tree4b951cd1b5d21ab4dcbe325a93622cead12790bb /src/trg-torrent-props-dialog.c
parent0a7facc248a7aa20fb10f85d01606a42ce00d1f9 (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-torrent-props-dialog.c')
-rw-r--r--src/trg-torrent-props-dialog.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/trg-torrent-props-dialog.c b/src/trg-torrent-props-dialog.c
index 2ce81ec..2ac11f5 100644
--- a/src/trg-torrent-props-dialog.c
+++ b/src/trg-torrent-props-dialog.c
@@ -221,7 +221,7 @@ static GObject *trg_torrent_props_dialog_constructor(GType type,
JsonObject *json;
GtkTreeSelection *selection;
gint rowCount;
- GtkWidget *notebook;
+ GtkWidget *notebook, *contentvbox;
object = G_OBJECT_CLASS
(trg_torrent_props_dialog_parent_class)->constructor(type,
@@ -278,7 +278,8 @@ static GObject *trg_torrent_props_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,
+ contentvbox = gtk_dialog_get_content_area(GTK_DIALOG(object));
+ gtk_box_pack_start(GTK_BOX(contentvbox), notebook,
TRUE, TRUE, 0);
return object;