[gnome-flashback] common: remove unused ignore-pending-change
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] common: remove unused ignore-pending-change
- Date: Sat, 20 Mar 2021 21:41:47 +0000 (UTC)
commit a26ca690f43db503766560d4f7302e1a1cef236d
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Mar 20 19:43:59 2021 +0200
common: remove unused ignore-pending-change
gnome-flashback/libcommon/gf-bg.c | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
---
diff --git a/gnome-flashback/libcommon/gf-bg.c b/gnome-flashback/libcommon/gf-bg.c
index 08dc60c..e9e5eda 100644
--- a/gnome-flashback/libcommon/gf-bg.c
+++ b/gnome-flashback/libcommon/gf-bg.c
@@ -161,16 +161,9 @@ color_to_string (const GdkRGBA *color)
static gboolean
do_changed (GfBG *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;
}
@@ -182,14 +175,6 @@ queue_changed (GfBG *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 nautilus 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]