[recipes] Make Save sensitive when ingredients' title changes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Make Save sensitive when ingredients' title changes
- Date: Sat, 11 Mar 2017 03:29:32 +0000 (UTC)
commit 80477ee6cc2162d07503e05f128ae3265c617120
Author: Ekta Nandwani <mailnandwaniekta gmail com>
Date: Sat Mar 11 03:34:39 2017 +0530
Make Save sensitive when ingredients' title changes
Fix: GSpell keeps emitting GtkEntry::changed by making save button sensitive even when not needed. So
replaced it with notify::text
https://bugzilla.gnome.org/show_bug.cgi?id=778200
src/gr-edit-page.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-edit-page.c b/src/gr-edit-page.c
index 013ffcc..1cb41b8 100644
--- a/src/gr-edit-page.c
+++ b/src/gr-edit-page.c
@@ -1717,6 +1717,7 @@ add_ingredients_segment (GrEditPage *page,
gtk_widget_show (entry);
gtk_entry_set_placeholder_text (GTK_ENTRY (entry), _("Name of the List"));
gtk_entry_set_text (GTK_ENTRY (entry), segment_label[0] ? segment_label : "");
+ g_signal_connect_swapped (entry, "notify::text", G_CALLBACK (set_unsaved),page);
#if defined(ENABLE_GSPELL) && defined(GSPELL_TYPE_ENTRY)
{
@@ -1724,8 +1725,6 @@ add_ingredients_segment (GrEditPage *page,
gspell_entry = gspell_entry_get_from_gtk_entry (GTK_ENTRY (entry));
gspell_entry_basic_setup (gspell_entry);
- g_signal_connect_swapped (GTK_WIDGET (entry), "changed", G_CALLBACK (set_unsaved),page);
-
}
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]