summaryrefslogtreecommitdiff
path: root/src/caja-pathbar.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-05-31 23:00:56 +0200
committerraveit65 <[email protected]>2016-06-15 13:28:54 +0200
commit0041a533fe63c8ccbe0881ab3fb9b3e9003d3ba6 (patch)
treec5a68b4b52438496dee392a101451946363bdf5b /src/caja-pathbar.c
parent3393126f95baeed3bebb21560c7548484475e935 (diff)
downloadcaja-0041a533fe63c8ccbe0881ab3fb9b3e9003d3ba6.tar.bz2
caja-0041a533fe63c8ccbe0881ab3fb9b3e9003d3ba6.tar.xz
GTK+3 pathbar: Do not use deprecate composite-child API
Diffstat (limited to 'src/caja-pathbar.c')
-rw-r--r--src/caja-pathbar.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/caja-pathbar.c b/src/caja-pathbar.c
index e0298c03..6891d813 100644
--- a/src/caja-pathbar.c
+++ b/src/caja-pathbar.c
@@ -162,7 +162,9 @@ get_slider_button (CajaPathBar *path_bar,
{
GtkWidget *button;
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_widget_push_composite_child ();
+#endif
button = gtk_button_new ();
gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
@@ -170,7 +172,9 @@ get_slider_button (CajaPathBar *path_bar,
gtk_container_add (GTK_CONTAINER (path_bar), button);
gtk_widget_show_all (button);
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_widget_pop_composite_child ();
+#endif
return button;
}
@@ -2209,7 +2213,9 @@ caja_path_bar_update_path (CajaPathBar *path_bar,
file = caja_file_get (file_path);
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_widget_push_composite_child ();
+#endif
while (file != NULL)
{
@@ -2246,7 +2252,9 @@ caja_path_bar_update_path (CajaPathBar *path_bar,
gtk_container_add (GTK_CONTAINER (path_bar), button);
}
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_widget_pop_composite_child ();
+#endif
if (path_bar->current_path != NULL)
{