summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-29 00:28:49 +0200
committerraveit65 <[email protected]>2016-07-14 16:15:12 +0200
commit659f67fbb31496f531e1ab7ded63beafba7c0a33 (patch)
tree78e201ed5ae944752e70f68cf5260b209775cd44
parent016d9a8f06c2c852c61a690247cf614adae9de2f (diff)
downloadcaja-659f67fbb31496f531e1ab7ded63beafba7c0a33.tar.bz2
caja-659f67fbb31496f531e1ab7ded63beafba7c0a33.tar.xz
GTK+-3 pathpar: add image-button class to iconic buttons
taken from: https://git.gnome.org/browse/nautilus/patch/src?id=4b2753d
-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
}
}
}