blob: e374836879c03e2e11bd4d6d26bfb5e7d875a3fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
$NetBSD: patch-aa,v 1.1 2004/02/04 11:51:57 martti Exp $
--- menueditor/menueditor.c.orig 2004-01-25 22:12:52.000000000 +0200
+++ menueditor/menueditor.c 2004-02-04 13:42:57.000000000 +0200
@@ -283,13 +283,14 @@
/* Check if there is no other file opened */
if(menueditor_app.xml_menu_file != NULL){
if(menueditor_app.menu_modified==TRUE){
+ gint response;
GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(menueditor_app.main_window),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_YES_NO,
_("Do you want to save before closing the file ?"));
- gint response = gtk_dialog_run(GTK_DIALOG(dialog));
+ response = gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
if(response==GTK_RESPONSE_YES)
@@ -320,13 +321,14 @@
/* Check if there is no other file opened */
if(menueditor_app.xml_menu_file != NULL){
if(menueditor_app.menu_modified==TRUE){
+ gint response;
GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(menueditor_app.main_window),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_YES_NO,
_("Do you want to save before closing the file ?"));
- gint response = gtk_dialog_run(GTK_DIALOG(dialog));
+ response = gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
if(response==GTK_RESPONSE_YES)
|