[Nautilus-list] [PATCH] fix for bug 74949, Forget History dialog is no/yes
- From: Diego González <diego pemas net>
- To: Nautilus List <nautilus-list lists eazel com>
- Subject: [Nautilus-list] [PATCH] fix for bug 74949, Forget History dialog is no/yes
- Date: 19 Apr 2002 17:03:29 +0200
hi
another easy patch for another easy to fix bug.
regards,
Diego
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/nautilus/ChangeLog,v
retrieving revision 1.5207
diff -u -r1.5207 ChangeLog
--- ChangeLog 19 Apr 2002 00:10:19 -0000 1.5207
+++ ChangeLog 19 Apr 2002 13:58:52 -0000
@@ -1,3 +1,9 @@
+2002-04-19 Diego González <diego pemas net>
+
+ * src/nautilus-window-menus.c (forget_history_if_confirmed):
+ use eel_create_question_dialog to show the buttons with the
+ proper strings. This fixes bug 74949.
+
2002-04-19 Anders Carlsson <andersca gnu org>
* libnautilus-private/nautilus-file-operations.c
Index: src/nautilus-window-menus.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-window-menus.c,v
retrieving revision 1.231
diff -u -r1.231 nautilus-window-menus.c
--- src/nautilus-window-menus.c 24 Mar 2002 16:38:48 -0000 1.231
+++ src/nautilus-window-menus.c 19 Apr 2002 13:58:52 -0000
@@ -96,6 +96,8 @@
#define CUSTOMER_FEEDBACK_URI "http://www.eazel.com/feedback.html"
#define START_HERE_URI "start-here:"
+#define RESPONSE_FORGET 1000
+
static GtkWindow *bookmarks_window = NULL;
static void append_bookmark_to_menu (NautilusWindow *window,
@@ -320,7 +322,7 @@
static void
forget_history_if_yes (GtkDialog *dialog, int response, gpointer callback_data)
{
- if (response == GTK_RESPONSE_YES) {
+ if (response == RESPONSE_FORGET) {
nautilus_forget_history ();
}
gtk_object_destroy (GTK_OBJECT (dialog));
@@ -347,15 +349,20 @@
"which locations you have visited?"));
}
- dialog = eel_show_yes_no_dialog (prompt,
- _("Forget History?"), _("Forget"), GTK_STOCK_CANCEL,
- GTK_WINDOW (window));
+ dialog = eel_create_question_dialog (prompt,
+ _("Forget History?"),
+ _("Forget"), RESPONSE_FORGET,
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_WINDOW (window));
+
+ gtk_widget_show (GTK_WIDGET (dialog));
+
g_free (prompt);
g_signal_connect (dialog, "response",
G_CALLBACK (forget_history_if_yes), NULL);
-
- gtk_dialog_set_default_response (dialog, GTK_RESPONSE_NO);
+
+ gtk_dialog_set_default_response (dialog, GTK_RESPONSE_CANCEL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]