Author: colossus Date: 2008-11-08 15:25:05 +0000 (Sat, 08 Nov 2008) New Revision: 28664
Modified: xarchiver/trunk/src/extract_dialog.c xarchiver/trunk/src/window.c Log: Enabled password field in the extract dialog when using the -e switch. Fixed disabled buttons after creating a new archive. Modified: xarchiver/trunk/src/extract_dialog.c =================================================================== --- xarchiver/trunk/src/extract_dialog.c 2008-11-08 14:18:44 UTC (rev 28663) +++ xarchiver/trunk/src/extract_dialog.c 2008-11-08 15:25:05 UTC (rev 28664) @@ -268,7 +268,7 @@ gtk_entry_set_text (GTK_ENTRY(dialog_data->destination_path_entry),archive_dir); } g_free(archive_dir); - if (archive->has_passwd) + if (archive->has_passwd || ! xa_main_window) { gtk_widget_set_sensitive (label_password,TRUE); gtk_widget_set_sensitive (dialog_data->password_entry,TRUE); Modified: xarchiver/trunk/src/window.c =================================================================== --- xarchiver/trunk/src/window.c 2008-11-08 14:18:44 UTC (rev 28663) +++ xarchiver/trunk/src/window.c 2008-11-08 15:25:05 UTC (rev 28664) @@ -81,6 +81,7 @@ there: if (xa_main_window) { + xa_set_button_state (1,1,1,1,archive->can_add,archive->can_extract,0,archive->has_test,archive->has_properties,archive->has_passwd,1); archive->child_pid = archive->pb_source = 0; gtk_widget_set_sensitive(Stop_button,FALSE); gtk_label_set_text(GTK_LABEL(total_label),""); _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits