summaryrefslogtreecommitdiff
path: root/src/trg-torrent-add-url-dialog.c
diff options
context:
space:
mode:
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,