[Xfce4-commits] r23229 - xarchiver/branches/xarchiver-psybsd/src
Stephan Arts
stephan at xfce.org
Thu Sep 28 12:38:50 UTC 2006
Author: stephan
Date: 2006-09-28 12:38:50 +0000 (Thu, 28 Sep 2006)
New Revision: 23229
Modified:
xarchiver/branches/xarchiver-psybsd/src/main_window.c
Log:
fixed button sensitivity after extraction
Modified: xarchiver/branches/xarchiver-psybsd/src/main_window.c
===================================================================
--- xarchiver/branches/xarchiver-psybsd/src/main_window.c 2006-09-28 12:18:45 UTC (rev 23228)
+++ xarchiver/branches/xarchiver-psybsd/src/main_window.c 2006-09-28 12:38:50 UTC (rev 23229)
@@ -650,19 +650,24 @@
case(LXA_ARCHIVESTATUS_IDLE):
status_message = g_strdup(_("Done"));
gtk_widget_set_sensitive(GTK_WIDGET(main_window->menubar.menu_item_close), TRUE);
- if(archive->old_status == LXA_ARCHIVESTATUS_REFRESH)
+ switch(archive->old_status)
{
- gtk_widget_set_sensitive(GTK_WIDGET(main_window->menubar.menu_item_add), TRUE);
- gtk_widget_set_sensitive(GTK_WIDGET(main_window->menubar.menu_item_remove), TRUE);
- gtk_widget_set_sensitive(GTK_WIDGET(main_window->menubar.menu_item_extract), TRUE);
- gtk_widget_set_sensitive(GTK_WIDGET(main_window->toolbar.tool_item_add), TRUE);
- gtk_widget_set_sensitive(GTK_WIDGET(main_window->toolbar.tool_item_remove), TRUE);
- gtk_widget_set_sensitive(GTK_WIDGET(main_window->toolbar.tool_item_extract), TRUE);
- xa_main_window_reset_columns(main_window);
+ case(LXA_ARCHIVESTATUS_REFRESH):
+ xa_main_window_reset_columns(main_window);
- main_window->working_node = g_slist_prepend(main_window->working_node, &(archive->root_entry));
- xa_main_window_set_contents(main_window, archive, archive->root_entry.children);
+ main_window->working_node = g_slist_prepend(main_window->working_node, &(archive->root_entry));
+ xa_main_window_set_contents(main_window, archive, archive->root_entry.children);
+ case(LXA_ARCHIVESTATUS_EXTRACT):
+ gtk_widget_set_sensitive(GTK_WIDGET(main_window->menubar.menu_item_add), TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(main_window->menubar.menu_item_remove), TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(main_window->menubar.menu_item_extract), TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(main_window->toolbar.tool_item_add), TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(main_window->toolbar.tool_item_remove), TRUE);
+ gtk_widget_set_sensitive(GTK_WIDGET(main_window->toolbar.tool_item_extract), TRUE);
+ break;
+ default:
+ break;
}
break;
}
More information about the Xfce4-commits
mailing list