Re: [evolution-patches] patch for bug 50646



Hi, everyone.

This time, I make some changes.
This patch is for bug 50646.
It fixing the bug of seeing more than one replace dialog while replacing.

Please seek it.

Best Regards
Charles Zhang

Charles Zhang wrote:

Hello, everyone.

Please seek this.
I try to fix the bug 50646 here.
To avoid seeing more than one replace dialog, I hide the current replace dialog before pop up the next replace dialog.
I think this is the simplest way of fixing this bug.

Best Regards
Charles Zhang

------------------------------------------------------------------------

Index: components/html-editor/replace.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/components/html-editor/replace.c,v
retrieving revision 1.18
diff -u -p -r1.18 replace.c
--- components/html-editor/replace.c	12 May 2003 20:46:48 -0000	1.18
+++ components/html-editor/replace.c	8 Nov 2003 14:42:11 -0000
@@ -49,6 +49,8 @@ struct _GtkHTMLReplaceDialog {
static void
ask_dialog_response (GtkDialog *dialog, gint response_id, GtkHTMLReplaceAskDialog *d)
{
+	gtk_widget_hide (GTK_WIDGET (d->dialog));
+
	switch (response_id) {
	case GTK_RESPONSE_DELETE_EVENT:
	case GTK_RESPONSE_CLOSE:
Index: components/html-editor/ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/components/html-editor/ChangeLog,v
retrieving revision 1.410.2.10
diff -u -p -r1.410.2.10 ChangeLog
--- components/html-editor/ChangeLog	14 Oct 2003 13:43:31 -0000	1.410.2.10
+++ components/html-editor/ChangeLog	8 Nov 2003 14:42:20 -0000
@@ -0,0 +0,5 @@
+2003-11-08  Charles Zhang  <charles zhang sun com>
+
+	* replace.c (ask_dialog_response): hide current replace dialog before
+	pop up next replace dialog. [50646]
+
Index: components/html-editor/replace.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/components/html-editor/replace.c,v
retrieving revision 1.18
diff -u -p -r1.18 replace.c
--- components/html-editor/replace.c	12 May 2003 20:46:48 -0000	1.18
+++ components/html-editor/replace.c	11 Nov 2003 10:44:45 -0000
@@ -49,6 +49,8 @@ struct _GtkHTMLReplaceDialog {
 static void
 ask_dialog_response (GtkDialog *dialog, gint response_id, GtkHTMLReplaceAskDialog *d)
 {
+	gtk_widget_hide (GTK_WIDGET (d->dialog));
+
 	switch (response_id) {
 	case GTK_RESPONSE_DELETE_EVENT:
 	case GTK_RESPONSE_CLOSE:
Index: components/html-editor/ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/components/html-editor/ChangeLog,v
retrieving revision 1.410.2.10
diff -u -p -r1.410.2.10 ChangeLog
--- components/html-editor/ChangeLog	14 Oct 2003 13:43:31 -0000	1.410.2.10
+++ components/html-editor/ChangeLog	11 Nov 2003 10:44:47 -0000
@@ -0,0 +0,5 @@
+2003-11-08  Charles Zhang  <charles zhang sun com>
+
+	* replace.c (ask_dialog_response): hide current replace dialog before
+	pop up next replace dialog. [50646]
+


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