From e2942ccb6206376293044bf0f7c885505e6a1113 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Sat, 9 Jan 2016 01:14:42 +0100 Subject: GTK3 icon-container: hook to style_updated instead of style_set taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=a083fa0 --- libcaja-private/caja-icon-container.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/libcaja-private/caja-icon-container.c b/libcaja-private/caja-icon-container.c index 93af49bc..fa93bf1e 100644 --- a/libcaja-private/caja-icon-container.c +++ b/libcaja-private/caja-icon-container.c @@ -4643,19 +4643,24 @@ unrealize (GtkWidget *widget) } static void +#if GTK_CHECK_VERSION(3,0,0) +style_updated (GtkWidget *widget) +{ + CajaIconContainer *container; + + GTK_WIDGET_CLASS (caja_icon_container_parent_class)->style_updated (widget); + + container = CAJA_ICON_CONTAINER (widget); + container->details->use_drop_shadows = container->details->drop_shadows_requested; +#else style_set (GtkWidget *widget, GtkStyle *previous_style) { CajaIconContainer *container; -#if !GTK_CHECK_VERSION(3,0,0) gboolean frame_text; -#endif container = CAJA_ICON_CONTAINER (widget); -#if GTK_CHECK_VERSION(3,0,0) - container->details->use_drop_shadows = container->details->drop_shadows_requested; -#else gtk_widget_style_get (GTK_WIDGET (container), "frame_text", &frame_text, NULL); @@ -6622,8 +6627,10 @@ caja_icon_container_class_init (CajaIconContainerClass *class) widget_class->key_press_event = key_press_event; widget_class->popup_menu = popup_menu; widget_class->get_accessible = get_accessible; +#if GTK_CHECK_VERSION(3,0,0) + widget_class->style_updated = style_updated; +#else widget_class->style_set = style_set; -#if !GTK_CHECK_VERSION(3,0,0) widget_class->expose_event = expose_event; #endif widget_class->grab_notify = grab_notify_cb; -- cgit v1.2.1