[gtranslator: 3/5] Edit profile trigger nplural inconsistency check




commit 02ff0dbc4cab0d5c80aee369b1397e1b496d1200
Author: Daniel GarcĂ­a Moreno <dani danigm net>
Date:   Thu Jun 2 17:02:57 2022 +0200

    Edit profile trigger nplural inconsistency check

 src/gtr-tab.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
---
diff --git a/src/gtr-tab.c b/src/gtr-tab.c
index 04543c1b..5e7cb5fb 100644
--- a/src/gtr-tab.c
+++ b/src/gtr-tab.c
@@ -297,6 +297,16 @@ on_active_profile_changed (GtrProfileManager *manager, GtrProfile *profile, GtrT
   }
 }
 
+static void
+on_profile_modified (GtrProfileManager *manager,
+                     GtrProfile *old_profile,
+                     GtrProfile *new_profile,
+                     GtrTab *tab)
+{
+  on_active_profile_changed (manager, new_profile, tab);
+}
+
+
 static void
 install_autosave_timeout (GtrTab * tab)
 {
@@ -1097,6 +1107,9 @@ gtr_tab_new (GtrPo * po,
   g_signal_connect (manager, "active-profile-changed",
                     G_CALLBACK (on_active_profile_changed), tab);
 
+    g_signal_connect (manager, "profile-modified",
+                    G_CALLBACK (on_profile_modified), tab);
+
   install_autosave_timeout_if_needed (tab);
 
   /* Now we have to initialize the number of msgstr tabs */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]