diff --git a/source/ubl-settings-manager.c b/source/ubl-settings-manager.c index c205f3e..6c8bdcd 100644 --- a/source/ubl-settings-manager.c +++ b/source/ubl-settings-manager.c @@ -41,10 +41,6 @@ void on_plug_removed(GtkSocket* self, actionWidgets *widgets){ gtk_widget_show(widgets->HideWhileLaunch); gtk_widget_set_vexpand(widgets->socketplace,0); gtk_widget_set_vexpand(widgets->HideWhileLaunch,1); - // if(widgets->socketbutton) - // gtk_widget_destroy(widgets->socketbutton); - // if(widgets->ThirdSocket) - // gtk_widget_destroy(widgets->ThirdSocket); } void on_Item_activated(GtkIconView* self, GtkTreePath* path, actionWidgets *applist){ @@ -151,7 +147,6 @@ void on_backToSettingsButton_clicked(GtkWidget *button,actionWidgets *sctb){ GtkWidget *socketplace=GTK_WIDGET(gtk_builder_get_object(sctb->builder,"socketplace")); gtk_widget_destroy(sctb->socket); sctb->socket=NULL; - // sctb->socket=GTK_WIDGET(create_socket(sctb)); GtkWidget *backbutton=sctb->ButtonBackToMain; gtk_widget_hide(backbutton); }; @@ -500,7 +495,6 @@ void on_sections_add(GtkWidget *button, actionWidgets *widgets){ SectionSettingSegment *segment=yon_create_section_setting(category_name,category_categories); dictionary *newsection = yon_dictionary_get_last(main_config.SettingsSections); newsection=yon_dictionary_create_with_data_connected(newsection,category_name,segment); - // printf("%s\n",category_name); dictionary *newsec=yon_dictionary_create_empty(); newsec=yon_section_new(newsec,category_name,category_categories); main_config.sections=yon_dictionary_create_with_data_connected(main_config.sections,category_name,newsec->data); @@ -641,7 +635,6 @@ void on_reveal_banner(GtkWidget *button, actionWidgets *widgets){ } void on_double_click_changed(GtkWidget *Switch, gboolean state, dictionary *widgetsD){ - // printf("%s\n","SGRBHSDRFJHNSDRJHNSDRJHNDRDJR"); *main_config.currentDoubleClick=state; update_double_clicks(widgetsD); } @@ -659,11 +652,7 @@ void on_about(GtkWidget *button, GtkBuilder *buildr){ GList *list = gtk_container_get_children(GTK_CONTAINER(AboutButtons)); gtk_widget_destroy(AboutButtons); g_signal_connect(G_OBJECT(About), "activate-link", G_CALLBACK(on_about_link), buildr); - // gtk_widget_destroy(GTK_WIDGET(g_list_first(list)->next->next)); - // gtk_widget_destroy(GTK_WIDGET(g_list_first(list)->next)); - // gtk_widget_destroy(GTK_WIDGET(g_list_first(list))); gtk_about_dialog_set_website_label(GTK_ABOUT_DIALOG(About),_(ABOUT_PROJECT_HOME_PAGE_LABEL)); - // gtk_widget_set_visible(AboutButtons,0); } int launch(thread_output *thread){ @@ -894,7 +883,7 @@ int check_categories(apps app, char *catstocheck){ n_found++; while (cat){ left_cats=cat+1; - char *fcat=app.Categories;//strstr(app.Categories,";"); + char *fcat=app.Categories; cat=strstr(cat+1,";"); if (!cat) break; find_it=yon_cut(left_cats,(strlen(left_cats)-strlen(cat)),0); @@ -1016,9 +1005,6 @@ int setup_config(){ main_config.sections->next=NULL; } - // if (main_config.windowWidth<1024&&main_config.windowHeight<720){ - // main_config.WindowTheme=0; - // } return 1; }; @@ -1666,9 +1652,6 @@ dictionary *yon_dictionary_get_last(dictionary *dict){ } void yon_main_quit(GtkWidget *,GdkEvent*,actionWidgets *widgets){ - // GtkWindow *wnd=GTK_WINDOW(widgets->window); - // gtk_window_get_position(wnd,&main_config.windowPosX,&main_config.windowPosY); - // gtk_window_get_size(wnd,&main_config.windowWidth,&main_config.windowHeight); g_signal_handlers_disconnect_by_func(widgets->socket,on_plug_removed,widgets); save_config(widgets); gtk_main_quit(); @@ -1727,10 +1710,6 @@ dictionary *yon_theme_new(dictionary **widgetss, GtkBuilder *builder, char *them } g_signal_connect(G_OBJECT(curWidgets->window), "configure-event", G_CALLBACK(on_resized), widgets); - // if (strcmp(theme_id,"Gnome")==0){ - // g_signal_connect(G_OBJECT(curWidgets->window), "event-after", G_CALLBACK(on_resized_done), widgets); - - // } if (curWidgets->ButtonBackToMain!=NULL) g_signal_connect(G_OBJECT(curWidgets->ButtonBackToMain), "clicked", G_CALLBACK(on_backToSettingsButton_clicked), curWidgets); gtk_window_set_title(GTK_WINDOW(curWidgets->window),UBL_SETTINGS_MANAGER_TITLE);