summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nautilus-connect-server-dialog.c7
-rw-r--r--src/nautilus-location-dialog.c7
2 files changed, 6 insertions, 8 deletions
diff --git a/src/nautilus-connect-server-dialog.c b/src/nautilus-connect-server-dialog.c
index 763fdce28..8efdb525f 100644
--- a/src/nautilus-connect-server-dialog.c
+++ b/src/nautilus-connect-server-dialog.c
@@ -46,8 +46,7 @@ EEL_CLASS_BOILERPLATE (NautilusConnectServerDialog,
nautilus_connect_server_dialog,
GTK_TYPE_DIALOG)
enum {
- RESPONSE_CONNECT,
- RESPONSE_CANCEL
+ RESPONSE_CONNECT
};
static void
@@ -132,7 +131,7 @@ response_callback (NautilusConnectServerDialog *dialog,
break;
case GTK_RESPONSE_NONE:
case GTK_RESPONSE_DELETE_EVENT:
- case RESPONSE_CANCEL:
+ case GTK_RESPONSE_CANCEL:
gtk_widget_destroy (GTK_WIDGET (dialog));
break;
default :
@@ -223,7 +222,7 @@ nautilus_connect_server_dialog_init (NautilusConnectServerDialog *dialog)
gtk_dialog_add_button (GTK_DIALOG (dialog),
GTK_STOCK_CANCEL,
- RESPONSE_CANCEL);
+ GTK_RESPONSE_CANCEL);
gtk_dialog_add_button (GTK_DIALOG (dialog),
_("Connect"),
RESPONSE_CONNECT);
diff --git a/src/nautilus-location-dialog.c b/src/nautilus-location-dialog.c
index ebbe30f6f..feef521cd 100644
--- a/src/nautilus-location-dialog.c
+++ b/src/nautilus-location-dialog.c
@@ -43,8 +43,7 @@ EEL_CLASS_BOILERPLATE (NautilusLocationDialog,
nautilus_location_dialog,
GTK_TYPE_DIALOG)
enum {
- RESPONSE_OPEN,
- RESPONSE_CANCEL
+ RESPONSE_OPEN
};
static void
@@ -96,7 +95,7 @@ response_callback (NautilusLocationDialog *dialog,
break;
case GTK_RESPONSE_NONE :
case GTK_RESPONSE_DELETE_EVENT :
- case RESPONSE_CANCEL :
+ case GTK_RESPONSE_CANCEL :
gtk_widget_destroy (GTK_WIDGET (dialog));
break;
default :
@@ -162,7 +161,7 @@ nautilus_location_dialog_init (NautilusLocationDialog *dialog)
gtk_dialog_add_button (GTK_DIALOG (dialog),
GTK_STOCK_CANCEL,
- RESPONSE_CANCEL);
+ GTK_RESPONSE_CANCEL);
gtk_dialog_add_button (GTK_DIALOG (dialog),
GTK_STOCK_OPEN,
RESPONSE_OPEN);