From 8cfc6187fdcfbc32e37aec8326451af2ae7eb893 Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Tue, 20 Sep 2011 19:26:28 +0000 Subject: 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. --- src/trg-torrent-props-dialog.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/trg-torrent-props-dialog.c') 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; -- cgit v1.2.3