From 6c05b09be16ac8eceb17653c3c26c0c6f963ef10 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 18 Jun 2012 15:34:33 +0200 Subject: Do not call g_object_notify() when property didn't change --- mail/e-mail-label-dialog.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mail/e-mail-label-dialog.c') diff --git a/mail/e-mail-label-dialog.c b/mail/e-mail-label-dialog.c index 15222cc7b4..839cc75424 100644 --- a/mail/e-mail-label-dialog.c +++ b/mail/e-mail-label-dialog.c @@ -266,6 +266,9 @@ e_mail_label_dialog_set_label_name (EMailLabelDialog *dialog, entry = GTK_ENTRY (dialog->priv->entry); + if (g_strcmp0 (gtk_entry_get_text (entry), label_name) == 0) + return; + gtk_entry_set_text (entry, label_name); g_object_notify (G_OBJECT (dialog), "label-name"); -- cgit v1.2.3