summaryrefslogtreecommitdiff
path: root/libmate-desktop
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-05-31 17:51:01 +0300
committermonsta <[email protected]>2016-05-31 17:54:39 +0300
commitb0c82883b1b8af2d0b727c39c099fac7c9445cc0 (patch)
treea74b8c30220e6f84d9577fe211378dc4d564e0c6 /libmate-desktop
parent95d0c79680214bdf9aa4eca8c93913a1d073a78f (diff)
downloadmate-desktop-b0c82883b1b8af2d0b727c39c099fac7c9445cc0.tar.bz2
mate-desktop-b0c82883b1b8af2d0b727c39c099fac7c9445cc0.tar.xz
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
Diffstat (limited to 'libmate-desktop')
-rw-r--r--libmate-desktop/mate-bg.c17
1 files changed, 1 insertions, 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,