From b0c82883b1b8af2d0b727c39c099fac7c9445cc0 Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 31 May 2016 17:51:01 +0300 Subject: mate-bg: remove unneeded ignore-pending-change property it's not used anymore since this Caja fix: https://github.com/mate-desktop/caja/commit/c74212b4630767b3b11b41cb26a8df20090096f4 --- libmate-desktop/mate-bg.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c index cfe14c6..ac91a19 100644 --- a/libmate-desktop/mate-bg.c +++ b/libmate-desktop/mate-bg.c @@ -231,16 +231,9 @@ color_to_string (const GdkColor *color) static gboolean do_changed (MateBG *bg) { - gboolean ignore_pending_change; bg->changed_id = 0; - ignore_pending_change = - GPOINTER_TO_INT (g_object_get_data (G_OBJECT (bg), - "ignore-pending-change")); - - if (!ignore_pending_change) { - g_signal_emit (G_OBJECT (bg), signals[CHANGED], 0); - } + g_signal_emit (G_OBJECT (bg), signals[CHANGED], 0); return FALSE; } @@ -252,14 +245,6 @@ queue_changed (MateBG *bg) g_source_remove (bg->changed_id); } - /* We unset this here to allow apps to set it if they don't want - to get the change event. This is used by caja when it - gets the pixmap from the bg (due to a reason other than the changed - event). Because if there is no other change after this time the - pending changed event will just uselessly cause us to recreate - the pixmap. */ - g_object_set_data (G_OBJECT (bg), "ignore-pending-change", - GINT_TO_POINTER (FALSE)); bg->changed_id = g_timeout_add_full (G_PRIORITY_LOW, 100, (GSourceFunc)do_changed, -- cgit v1.2.1