[dia] Bug 663047 - Replace and Match all don't work together



commit 5415aecbd88f402236a9706a94a439e35f9c8153
Author: Hans Breuer <hans breuer org>
Date:   Sat Dec 17 16:30:26 2011 +0100

    Bug 663047 - Replace and Match all don't work together
    
    The reporter could make it crash, I simply couldn't make it work.
    For the described case of non-flat property values the code would
    need to be much more elaborated so Match all is disabled for the
    Replace case.
    (cherry picked from commit a2df22740dd9d4b159a7459f1dfa94b06317f63e)

 app/find-and-replace.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/find-and-replace.c b/app/find-and-replace.c
index 4aeede4..3d512bc 100644
--- a/app/find-and-replace.c
+++ b/app/find-and-replace.c
@@ -485,6 +485,9 @@ fnr_dialog_setup_common (GtkWidget *dialog, gboolean is_replace, DDisplay *ddisp
   match_all_properties = gtk_check_button_new_with_mnemonic (_("Match _all properties (not just object name)"));
   gtk_box_pack_start (GTK_BOX (vbox), match_all_properties, FALSE, FALSE, 6);
   g_object_set_data (G_OBJECT (dialog), "match-all-properties", match_all_properties);
+  if (is_replace)
+    gtk_widget_set_sensitive (GTK_WIDGET (match_all_properties), FALSE);
+    
 
   gtk_widget_show_all (vbox);
 }



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