diff options
author | lukefromdc <[email protected]> | 2016-05-28 18:13:13 -0400 |
---|---|---|
committer | lukefromdc <[email protected]> | 2016-05-28 18:13:13 -0400 |
commit | 9e97cf839b297dedccb1955603a02295a6292d87 (patch) | |
tree | a66aeb54dffea440466709df9f14d9d6db9cca9a | |
parent | 74a1a7a675fb265933a11b7cd01557caa72bf7a1 (diff) | |
download | caja-9e97cf839b297dedccb1955603a02295a6292d87.tar.bz2 caja-9e97cf839b297dedccb1955603a02295a6292d87.tar.xz |
GTK3:caja-pathbar remove GtkStyle vars
caja-pathbar.c: GtkStyleContext is already used to style the pathbar, so removed GtkStyle variables and unneeded caja_path_bar_style_set function
-rw-r--r-- | src/caja-pathbar.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/caja-pathbar.c b/src/caja-pathbar.c index aec342b3..ded4595d 100644 --- a/src/caja-pathbar.c +++ b/src/caja-pathbar.c @@ -140,8 +140,10 @@ static void caja_path_bar_grab_notify (GtkWidget *widget, gboolean was_grabbed); static void caja_path_bar_state_changed (GtkWidget *widget, GtkStateType previous_state); +#if !GTK_CHECK_VERSION (3, 0, 0) static void caja_path_bar_style_set (GtkWidget *widget, GtkStyle *previous_style); +#endif static void caja_path_bar_screen_changed (GtkWidget *widget, GdkScreen *previous_screen); static void caja_path_bar_check_icon_theme (CajaPathBar *path_bar); @@ -401,7 +403,9 @@ caja_path_bar_class_init (CajaPathBarClass *path_bar_class) #endif widget_class->unmap = caja_path_bar_unmap; widget_class->size_allocate = caja_path_bar_size_allocate; +#if !GTK_CHECK_VERSION (3, 0, 0) widget_class->style_set = caja_path_bar_style_set; +#endif widget_class->screen_changed = caja_path_bar_screen_changed; widget_class->grab_notify = caja_path_bar_grab_notify; widget_class->state_changed = caja_path_bar_state_changed; @@ -956,6 +960,7 @@ caja_path_bar_size_allocate (GtkWidget *widget, } } +#if !GTK_CHECK_VERSION (3, 0, 0) static void caja_path_bar_style_set (GtkWidget *widget, GtkStyle *previous_style) { @@ -966,6 +971,7 @@ caja_path_bar_style_set (GtkWidget *widget, GtkStyle *previous_style) caja_path_bar_check_icon_theme (CAJA_PATH_BAR (widget)); } +#endif static void caja_path_bar_screen_changed (GtkWidget *widget, @@ -980,7 +986,9 @@ caja_path_bar_screen_changed (GtkWidget *widget, { remove_settings_signal (CAJA_PATH_BAR (widget), previous_screen); } +#if !GTK_CHECK_VERSION (3, 0, 0) caja_path_bar_check_icon_theme (CAJA_PATH_BAR (widget)); +#endif } static gboolean @@ -1381,7 +1389,7 @@ settings_notify_cb (GObject *object, change_icon_theme (path_bar); } } - +#if !GTK_CHECK_VERSION (3, 0, 0) static void caja_path_bar_check_icon_theme (CajaPathBar *path_bar) { @@ -1397,7 +1405,7 @@ caja_path_bar_check_icon_theme (CajaPathBar *path_bar) change_icon_theme (path_bar); } - +#endif /* Public functions and their helpers */ void caja_path_bar_clear_buttons (CajaPathBar *path_bar) |