[gnome-builder] documents-button: assign the right binding to the weak pointer
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] documents-button: assign the right binding to the weak pointer
- Date: Tue, 13 Jan 2015 05:13:45 +0000 (UTC)
commit fe3ec13f5d4035dba8c44a64858406946a110427
Author: Christian Hergert <christian hergert me>
Date: Mon Jan 12 21:12:13 2015 -0800
documents-button: assign the right binding to the weak pointer
We were assigning the title binding to the modified binding location,
which could cause the modified label to get out of sync.
https://bugzilla.gnome.org/show_bug.cgi?id=742077
src/documents/gb-document-menu-button.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/documents/gb-document-menu-button.c b/src/documents/gb-document-menu-button.c
index 4f6336f..3e940e1 100644
--- a/src/documents/gb-document-menu-button.c
+++ b/src/documents/gb-document-menu-button.c
@@ -336,7 +336,7 @@ gb_document_menu_button_select_document (GbDocumentMenuButton *button,
g_object_bind_property (document, "modified",
priv->modified_label, "visible",
G_BINDING_SYNC_CREATE);
- gb_set_weak_pointer (priv->title_binding, &priv->modified_binding);
+ gb_set_weak_pointer (priv->modified_binding, &priv->modified_binding);
value = g_get_monotonic_time () / (G_USEC_PER_SEC / 10);
g_hash_table_replace (priv->focus_time, document,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]