summaryrefslogtreecommitdiff
path: root/src/trg-torrent-add-url-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-add-url-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-add-url-dialog.c')
-rw-r--r--src/trg-torrent-add-url-dialog.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/trg-torrent-add-url-dialog.c b/src/trg-torrent-add-url-dialog.c
index ebf211c..7a4c45f 100644
--- a/src/trg-torrent-add-url-dialog.c
+++ b/src/trg-torrent-add-url-dialog.c
@@ -75,9 +75,11 @@ static void trg_torrent_add_url_dialog_init(TrgTorrentAddUrlDialog * self)
{
TrgTorrentAddUrlDialogPrivate *priv =
TRG_TORRENT_ADD_URL_DIALOG_GET_PRIVATE(self);
- GtkWidget *w, *t;
+ GtkWidget *w, *t, *contentvbox;
gint row = 0;
+ contentvbox = gtk_dialog_get_content_area (GTK_DIALOG(self));
+
t = hig_workarea_create();
w = priv->urlEntry = gtk_entry_new();
@@ -108,7 +110,7 @@ static void trg_torrent_add_url_dialog_init(TrgTorrentAddUrlDialog * self)
gtk_container_set_border_width(GTK_CONTAINER(t), GUI_PAD);
- gtk_box_pack_start(GTK_BOX(GTK_DIALOG(self)->vbox), t, TRUE, TRUE, 0);
+ gtk_box_pack_start(GTK_BOX(contentvbox), t, TRUE, TRUE, 0);
}
TrgTorrentAddUrlDialog *trg_torrent_add_url_dialog_new(TrgMainWindow * win,