[gnome-control-center] background: Prevent monitor_pictures_model() running multiple times
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] background: Prevent monitor_pictures_model() running multiple times
- Date: Fri, 18 Jul 2014 16:28:57 +0000 (UTC)
commit e1fab88105c1fae31fc89472466e5f3933e3574f
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jul 18 10:27:44 2014 +0200
background: Prevent monitor_pictures_model() running multiple times
https://bugzilla.gnome.org/show_bug.cgi?id=689351
panels/background/cc-background-chooser-dialog.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/background/cc-background-chooser-dialog.c
b/panels/background/cc-background-chooser-dialog.c
index 79b39a2..ea39899 100644
--- a/panels/background/cc-background-chooser-dialog.c
+++ b/panels/background/cc-background-chooser-dialog.c
@@ -172,6 +172,9 @@ monitor_pictures_model (CcBackgroundChooserDialog *chooser)
{
GtkTreeModel *model;
+ if (chooser->priv->row_inserted_id != 0)
+ return;
+
model = GTK_TREE_MODEL (bg_source_get_liststore (BG_SOURCE (chooser->priv->pictures_source)));
chooser->priv->row_inserted_id = g_signal_connect (model, "row-inserted",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]