diff options
author | Alan Fitton <alan@eth0.org.uk> | 2012-06-05 22:07:58 +0100 |
---|---|---|
committer | Alan Fitton <alan@eth0.org.uk> | 2012-06-05 22:07:58 +0100 |
commit | a46c8201c42ac4ae85b50a5a1930759f8537d3c7 (patch) | |
tree | 3da13c2368b85b7fd7f2896541795445f8abd8fa /src/trg-main-window.c | |
parent | 855532ed7ffd3415150c73574eb8e9038f1075eb (diff) |
fix deprecation warnings for gtk_{h,v}box_new and gtk_{h,v}paned_new in gtk3
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r-- | src/trg-main-window.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c index 0f21430..1369b44 100644 --- a/src/trg-main-window.c +++ b/src/trg-main-window.c @@ -2631,14 +2631,14 @@ static GObject *trg_main_window_constructor(GType type, g_signal_connect(priv->torrentTreeView, "row-activated", G_CALLBACK(torrent_tv_onRowActivated), self); - outerVbox = gtk_vbox_new(FALSE, 0); + outerVbox = trg_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(self), outerVbox); priv->menuBar = trg_main_window_menu_bar_new(self); gtk_box_pack_start(GTK_BOX(outerVbox), GTK_WIDGET(priv->menuBar), FALSE, FALSE, 0); - toolbarHbox = gtk_hbox_new(FALSE, 0); + toolbarHbox = trg_hbox_new(FALSE, 0); priv->toolBar = trg_main_window_toolbar_new(self); gtk_box_pack_start(GTK_BOX(toolbarHbox), GTK_WIDGET(priv->toolBar), TRUE, TRUE, 0); @@ -2658,8 +2658,14 @@ static GObject *trg_main_window_constructor(GType type, gtk_box_pack_start(GTK_BOX(outerVbox), GTK_WIDGET(toolbarHbox), FALSE, FALSE, 0); +#if GTK_CHECK_VERSION( 3, 0, 0 ) + priv->hpaned = gtk_paned_new(GTK_ORIENTATION_HORIZONTAL); + priv->vpaned = gtk_paned_new(GTK_ORIENTATION_VERTICAL); +#else priv->vpaned = gtk_vpaned_new(); priv->hpaned = gtk_hpaned_new(); +#endif + gtk_box_pack_start(GTK_BOX(outerVbox), priv->vpaned, TRUE, TRUE, 0); gtk_paned_pack1(GTK_PANED(priv->vpaned), priv->hpaned, TRUE, TRUE); |