|
|
|
@ -207,6 +207,10 @@ void on_storage_changed(GtkWidget *self, storage_config_window *window){
|
|
|
|
yon_storage_config_update(window);
|
|
|
|
yon_storage_config_update(window);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void yon_repo_creation_set_sensitive_from_combo_box(GtkComboBox *toggle, GtkWidget *target){
|
|
|
|
|
|
|
|
gtk_widget_set_sensitive(target,gtk_combo_box_get_active(toggle)>-1 ? 1 : 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
storage_config_window *yon_storage_config_window_new(){
|
|
|
|
storage_config_window *yon_storage_config_window_new(){
|
|
|
|
storage_config_window *window = malloc(sizeof(storage_config_window));
|
|
|
|
storage_config_window *window = malloc(sizeof(storage_config_window));
|
|
|
|
GtkBuilder *builder = gtk_builder_new_from_resource(glade_path_storage_config);
|
|
|
|
GtkBuilder *builder = gtk_builder_new_from_resource(glade_path_storage_config);
|
|
|
|
@ -250,8 +254,8 @@ storage_config_window *yon_storage_config_window_new(){
|
|
|
|
g_signal_connect(G_OBJECT(window->DeleteButton),"clicked",G_CALLBACK(on_storage_remove),window);
|
|
|
|
g_signal_connect(G_OBJECT(window->DeleteButton),"clicked",G_CALLBACK(on_storage_remove),window);
|
|
|
|
g_signal_connect(G_OBJECT(window->AddRepoButton),"clicked",G_CALLBACK(on_repo_add),window);
|
|
|
|
g_signal_connect(G_OBJECT(window->AddRepoButton),"clicked",G_CALLBACK(on_repo_add),window);
|
|
|
|
g_signal_connect(G_OBJECT(window->StoragePathCombo),"changed",G_CALLBACK(on_storage_changed),window);
|
|
|
|
g_signal_connect(G_OBJECT(window->StoragePathCombo),"changed",G_CALLBACK(on_storage_changed),window);
|
|
|
|
g_signal_connect(G_OBJECT(window->StoragePathCombo),"changed",G_CALLBACK(yon_gtk_widget_set_sensitive_from_combo_box),window->AddEntry);
|
|
|
|
g_signal_connect(G_OBJECT(window->StoragePathCombo),"changed",G_CALLBACK(yon_repo_creation_set_sensitive_from_combo_box),window->AddEntry);
|
|
|
|
g_signal_connect(G_OBJECT(window->StoragePathCombo),"changed",G_CALLBACK(yon_gtk_widget_set_sensitive_from_combo_box),window->AddRepoButton);
|
|
|
|
g_signal_connect(G_OBJECT(window->StoragePathCombo),"changed",G_CALLBACK(yon_repo_creation_set_sensitive_from_combo_box),window->AddRepoButton);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return window;
|
|
|
|
return window;
|
|
|
|
|