Fixed storage configuration window crash

pull/108/head
parent 09a8434c1d
commit e8ed373905
No known key found for this signature in database
GPG Key ID: FF1D842BF4DDE92B

@ -243,6 +243,8 @@ storage_config_window *yon_storage_config_window_new(){
} }
yon_config_register(storage->path,STORAGE_command,yon_char_parsed_to_string(paths,repos_size,",")); yon_config_register(storage->path,STORAGE_command,yon_char_parsed_to_string(paths,repos_size,","));
} }
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_gtk_widget_set_sensitive_from_combo_box),window->AddRepoButton);
g_signal_connect(G_OBJECT(window->CancelButton),"clicked",G_CALLBACK(on_subwindow_close),NULL); g_signal_connect(G_OBJECT(window->CancelButton),"clicked",G_CALLBACK(on_subwindow_close),NULL);
g_signal_connect(G_OBJECT(window->OpenExistingButton),"clicked",G_CALLBACK(on_storage_open),window); g_signal_connect(G_OBJECT(window->OpenExistingButton),"clicked",G_CALLBACK(on_storage_open),window);
g_signal_connect(G_OBJECT(window->CreateNewButton),"clicked",G_CALLBACK(on_storage_create),window); g_signal_connect(G_OBJECT(window->CreateNewButton),"clicked",G_CALLBACK(on_storage_create),window);

@ -422,9 +422,9 @@ main_window *yon_main_window_complete(main_window *widgets){
int main(int argc, char *argv[]){ int main(int argc, char *argv[]){
setlocale(LC_ALL, ""); setlocale(LC_ALL, "");
textdomain (LocaleName); textdomain (LocaleName);
yon_ubl_connect_config((_template_config*)&main_config);
config_init(); config_init();
yon_ubl_connect_config((_template_config*)&main_config);
yon_ubl_window_init(TITLE_LABEL,TITLE_INFO_LABEL,LocaleName,CssPath,LocaleName,version_application,WIKI_LINK); yon_ubl_window_init(TITLE_LABEL,TITLE_INFO_LABEL,LocaleName,CssPath,LocaleName,version_application,WIKI_LINK);
config_str unfound = NULL; config_str unfound = NULL;
int size=0; int size=0;

@ -228,6 +228,7 @@
<child> <child>
<object class="GtkEntry" id="AddEntry"> <object class="GtkEntry" id="AddEntry">
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can-focus">True</property> <property name="can-focus">True</property>
</object> </object>
<packing> <packing>
@ -239,6 +240,7 @@
<child> <child>
<object class="GtkButton" id="AddRepoButton"> <object class="GtkButton" id="AddRepoButton">
<property name="visible">True</property> <property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can-focus">True</property> <property name="can-focus">True</property>
<property name="receives-default">True</property> <property name="receives-default">True</property>
<property name="tooltip-text" translatable="yes">Add repository</property> <property name="tooltip-text" translatable="yes">Add repository</property>

Loading…
Cancel
Save