summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ce39fa9b..a223d481 100644
--- a/src/caja-pathbar.c
+++ b/src/caja-pathbar.c
@@ -1703,12 +1703,20 @@ caja_path_bar_update_button_appearance (ButtonData *button_data)
if (pixbuf != NULL)
{
gtk_image_set_from_pixbuf (GTK_IMAGE (button_data->image), pixbuf);
+#if GTK_CHECK_VERSION(3,0,0)
+ gtk_style_context_add_class (gtk_widget_get_style_context (button_data->button),
+ "image-button");
+#endif
gtk_widget_show (GTK_WIDGET (button_data->image));
g_object_unref (pixbuf);
}
else
{
gtk_widget_hide (GTK_WIDGET (button_data->image));
+#if GTK_CHECK_VERSION(3,0,0)
+ gtk_style_context_remove_class (gtk_widget_get_style_context (button_data->button),
+ "image-button");
+#endif
}
}
}