45
45
Extract_dialog_data *xa_create_extract_dialog()
47
GSList *radiobutton1_group = NULL;
48
47
Extract_dialog_data *dialog_data;
50
49
dialog_data = g_new0 (Extract_dialog_data,1);
91
90
dialog_data->all_files_radio = gtk_radio_button_new_with_mnemonic (NULL,_("All files"));
92
91
gtk_box_pack_start (GTK_BOX (vbox3),dialog_data->all_files_radio,FALSE,FALSE,0);
93
gtk_radio_button_set_group (GTK_RADIO_BUTTON (dialog_data->all_files_radio),radiobutton1_group);
94
radiobutton1_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (dialog_data->all_files_radio));
92
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog_data->all_files_radio), TRUE);
96
dialog_data->selected_radio = gtk_radio_button_new_with_mnemonic (NULL,_("Selected files"));
94
dialog_data->selected_radio = gtk_radio_button_new_with_mnemonic_from_widget (GTK_RADIO_BUTTON (dialog_data->all_files_radio),_("Selected files"));
97
95
gtk_box_pack_start (GTK_BOX (vbox3),dialog_data->selected_radio,FALSE,FALSE,0);
98
gtk_radio_button_set_group (GTK_RADIO_BUTTON (dialog_data->selected_radio),radiobutton1_group);
99
radiobutton1_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (dialog_data->selected_radio));
96
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog_data->selected_radio), TRUE);
101
98
hbox2 = gtk_hbox_new (FALSE,0);
102
99
gtk_box_pack_start (GTK_BOX (vbox3),hbox2,FALSE,FALSE,0);
104
dialog_data->files_radio = gtk_radio_button_new_with_mnemonic (NULL,_("Files: "));
101
dialog_data->files_radio = gtk_radio_button_new_with_mnemonic_from_widget (GTK_RADIO_BUTTON (dialog_data->all_files_radio),_("Files: "));
105
102
gtk_box_pack_start (GTK_BOX (hbox2),dialog_data->files_radio,FALSE,FALSE,0);
106
gtk_radio_button_set_group (GTK_RADIO_BUTTON (dialog_data->files_radio),radiobutton1_group);
107
radiobutton1_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (dialog_data->files_radio));
103
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog_data->files_radio), TRUE);
109
105
dialog_data->entry2 = gtk_entry_new ();
110
106
gtk_box_pack_start (GTK_BOX (hbox2),dialog_data->entry2,TRUE,TRUE,0);
375
371
else if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (dialog_data->selected_radio)))
376
372
gtk_tree_selection_selected_foreach(selection,(GtkTreeSelectionForeachFunc)xa_concat_selected_filenames,&names);
378
373
if (xa_main_window)
380
375
xa_set_button_state (0,0,0,0,0,0,0,0,0,0,0);
381
376
gtk_widget_set_sensitive (Stop_button,TRUE);
382
377
gtk_label_set_text(GTK_LABEL(total_label),_("Extracting files from archive,please wait..."));
384
g_print ("%s\n",archive->passwd);
385
379
(*archive->extract)(archive,names);