diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-22 01:55:20 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-22 01:55:20 +0100 |
commit | d99b7141da19a746a9329daece4a83704f0101b5 (patch) | |
tree | d410c9eb3aa0f8e4071ebe34238a819cef65093c | |
parent | cc6a1d11d8903c3051d0af400559679cc5b4aed6 (diff) | |
download | caja-d99b7141da19a746a9329daece4a83704f0101b5.tar.bz2 caja-d99b7141da19a746a9329daece4a83704f0101b5.tar.xz |
GTK3 side-pane + spartial-window: don't use deprecated gtk_arrow_new ()
-rw-r--r-- | src/caja-side-pane.c | 4 | ||||
-rw-r--r-- | src/caja-spatial-window.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/caja-side-pane.c b/src/caja-side-pane.c index c1a6a959..ae84242e 100644 --- a/src/caja-side-pane.c +++ b/src/caja-side-pane.c @@ -353,7 +353,11 @@ caja_side_pane_init (GObject *object) side_pane->details->title_label, FALSE, FALSE, 0); +#if GTK_CHECK_VERSION (3, 0, 0) + arrow = gtk_image_new_from_icon_name ("pan-down-symbolic", GTK_ICON_SIZE_BUTTON); +#else arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE); +#endif gtk_widget_show (arrow); gtk_box_pack_end (GTK_BOX (select_hbox), arrow, FALSE, FALSE, 0); diff --git a/src/caja-spatial-window.c b/src/caja-spatial-window.c index 05082358..d2c79213 100644 --- a/src/caja-spatial-window.c +++ b/src/caja-spatial-window.c @@ -1062,7 +1062,11 @@ caja_spatial_window_init (CajaSpatialWindow *window) FALSE, FALSE, 0); gtk_widget_show (window->details->location_label); +#if GTK_CHECK_VERSION (3, 0, 0) + arrow = gtk_image_new_from_icon_name ("pan-down-symbolic", GTK_ICON_SIZE_BUTTON); +#else arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE); +#endif gtk_box_pack_start (GTK_BOX (hbox), arrow, FALSE, FALSE, 0); gtk_widget_show (arrow); |