[nautilus-actions] Handle a default when no preference
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Handle a default when no preference
- Date: Sat, 26 Sep 2009 22:49:56 +0000 (UTC)
commit f3faba7f37713b087bc0ee3a9e14c434ee6ef01f
Author: Pierre Wieser <pwieser trychlos org>
Date: Fri Sep 25 08:23:50 2009 +0200
Handle a default when no preference
src/nact/nact-assistant-import.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/nact/nact-assistant-import.c b/src/nact/nact-assistant-import.c
index b0fa595..ef5ae8d 100644
--- a/src/nact/nact-assistant-import.c
+++ b/src/nact/nact-assistant-import.c
@@ -462,11 +462,6 @@ set_import_mode( NactAssistantImport *window, gint mode )
GtkToggleButton *button;
switch( mode ){
- case NO_IMPORT_MODE:
- button = GTK_TOGGLE_BUTTON( base_window_get_widget( BASE_WINDOW( window ), "NoImportButton" ));
- gtk_toggle_button_set_active( button, TRUE );
- break;
-
case RENUMBER_MODE:
button = GTK_TOGGLE_BUTTON( base_window_get_widget( BASE_WINDOW( window ), "RenumberButton" ));
gtk_toggle_button_set_active( button, TRUE );
@@ -476,6 +471,12 @@ set_import_mode( NactAssistantImport *window, gint mode )
button = GTK_TOGGLE_BUTTON( base_window_get_widget( BASE_WINDOW( window ), "OverrideButton" ));
gtk_toggle_button_set_active( button, TRUE );
break;
+
+ case NO_IMPORT_MODE:
+ default:
+ button = GTK_TOGGLE_BUTTON( base_window_get_widget( BASE_WINDOW( window ), "NoImportButton" ));
+ gtk_toggle_button_set_active( button, TRUE );
+ break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]