|
|
|
@ -2227,7 +2227,7 @@ void on_exit_accepted(GtkWidget *,dictionary *dict){
|
|
|
|
g_mutex_unlock(&main_config.install_mutex);
|
|
|
|
g_mutex_unlock(&main_config.install_mutex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
main_config.exit_accepted=1;
|
|
|
|
main_config.exit_accepted=1;
|
|
|
|
g_signal_emit_by_name(G_OBJECT(widgets->MainWindow),"delete-event",widgets->MainWindow,NULL);
|
|
|
|
g_signal_emit_by_name(G_OBJECT(widgets->MainWindow),"delete-event");
|
|
|
|
free(window);
|
|
|
|
free(window);
|
|
|
|
yon_dictionary_free_all(dict,NULL);
|
|
|
|
yon_dictionary_free_all(dict,NULL);
|
|
|
|
free(dict);
|
|
|
|
free(dict);
|
|
|
|
@ -2732,10 +2732,10 @@ int main(int argc, char *argv[]){
|
|
|
|
gtk_init(&argc,&argv);
|
|
|
|
gtk_init(&argc,&argv);
|
|
|
|
main_window *widgets = NULL;
|
|
|
|
main_window *widgets = NULL;
|
|
|
|
widgets = yon_main_window_complete();
|
|
|
|
widgets = yon_main_window_complete();
|
|
|
|
// yon_window_config_setup(GTK_WINDOW(widgets->MainWindow));
|
|
|
|
yon_window_config_setup(GTK_WINDOW(widgets->MainWindow));
|
|
|
|
// char *window_config_path = config_path;
|
|
|
|
char *window_config_path = config_path;
|
|
|
|
// yon_window_config_load(window_config_path);
|
|
|
|
yon_window_config_load(window_config_path);
|
|
|
|
// free(window_config_path);
|
|
|
|
free(window_config_path);
|
|
|
|
GtkCssProvider *css=gtk_css_provider_new();
|
|
|
|
GtkCssProvider *css=gtk_css_provider_new();
|
|
|
|
gtk_css_provider_load_from_resource(css,CssPath);
|
|
|
|
gtk_css_provider_load_from_resource(css,CssPath);
|
|
|
|
gtk_style_context_add_provider_for_screen(gdk_screen_get_default(),
|
|
|
|
gtk_style_context_add_provider_for_screen(gdk_screen_get_default(),
|
|
|
|
|