|
|
|
@ -273,19 +273,6 @@ void main_cbx_2_event() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void tree_view_delete(GtkWidget *self, main_window *widgets) {
|
|
|
|
|
yon_ubl_status_box_render(STR_DEL_TABLE ,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
GtkTreeIter iter;
|
|
|
|
|
char *name;
|
|
|
|
|
GtkTreeModel *list_s = GTK_TREE_MODEL(main_config.list);
|
|
|
|
|
GtkTreeSelection *selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(widgets->treeViewMain));
|
|
|
|
|
if(gtk_tree_selection_get_selected(selection,&list_s,&iter)){
|
|
|
|
|
gtk_tree_model_get(list_s, &iter, 1, &name, -1);
|
|
|
|
|
} else {
|
|
|
|
|
yon_ubl_status_box_render(STR_DEL_TABLE, BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void tree_view_select(GtkWidget *self, main_window *widgets) {
|
|
|
|
|
GtkTreeIter iter;
|
|
|
|
|
char *name;
|
|
|
|
@ -362,39 +349,6 @@ int tree_view_edit() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
void yon_gtk_list_store_fill_with_proprietaries(GtkListStore *list){
|
|
|
|
|
if(videoconfig.proprietary){
|
|
|
|
|
dictionary *dict=NULL;
|
|
|
|
|
gtk_list_store_clear(videoconfig.list);
|
|
|
|
|
gtk_list_store_clear(videoconfig.list2);
|
|
|
|
|
int inssize=0;
|
|
|
|
|
config_str installed=yon_config_load(get_proprietary_installed_command,&inssize);
|
|
|
|
|
for (int i=0;i<inssize;i++)
|
|
|
|
|
installed[i]=yon_char_divide_search(installed[i],"\n",-1);
|
|
|
|
|
|
|
|
|
|
for_dictionaries(dict,videoconfig.proprietary){
|
|
|
|
|
GtkTreeIter iter;
|
|
|
|
|
int size=0;
|
|
|
|
|
config_str str = yon_char_parse((char*)dict->data,&size,";");
|
|
|
|
|
if (strcmp(str[0],"")!=0&&str[0]){
|
|
|
|
|
gtk_list_store_append(videoconfig.list,&iter);
|
|
|
|
|
gtk_list_store_set(videoconfig.list,&iter,1,str[0],2,str[1],3,str[2],4,_(str[3]),5,_(str[4]),-1);
|
|
|
|
|
if (yon_char_parsed_check_exist(installed,inssize,str[0])!=-1)
|
|
|
|
|
gtk_list_store_set(videoconfig.list,&iter,0,1,-1);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
gtk_list_store_append(videoconfig.list2,&iter);
|
|
|
|
|
gtk_list_store_set(videoconfig.list2,&iter,1,str[0],2,str[1],3,str[2],4,_(str[3]),5,_(str[4]),-1);
|
|
|
|
|
if (yon_char_parsed_check_exist(installed,inssize,str[1])!=-1){
|
|
|
|
|
gtk_list_store_set(videoconfig.list2,&iter,0,1,-1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void main_visible_columns(GtkWidget *self) {
|
|
|
|
|
gboolean *flags_filters = filters_get_flag();
|
|
|
|
@ -432,7 +386,7 @@ void main_event(main_window *widgets) {
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->btnMainShowCoreStream), "toggled", G_CALLBACK(main_update_processes), NULL);
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->cbtMainInfo),"changed",G_CALLBACK(main_update_information), NULL);
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->cbtMainInfoLevel2),"changed",G_CALLBACK(main_cbx_2_event), NULL);
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->btnDelQuotas), "clicked", G_CALLBACK(tree_view_delete), widgets);
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->btnDelQuotas), "clicked", G_CALLBACK(tree_view_del_line), widgets);
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->treeViewMain), "cursor-changed", G_CALLBACK(tree_view_select), widgets);
|
|
|
|
|
/*
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->LoadGlobalMenuItem),"activate",G_CALLBACK(),NULL);
|
|
|
|
@ -460,7 +414,6 @@ void wrapper_filters_show(GtkWidget *self) {
|
|
|
|
|
void wrapper_edit_show() {
|
|
|
|
|
GtkTreeIter iter;
|
|
|
|
|
GtkTreeModel *model = GTK_TREE_MODEL(main_config.list);
|
|
|
|
|
|
|
|
|
|
GtkTreeSelection *selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(widgets->treeViewMain));
|
|
|
|
|
if(gtk_tree_selection_get_selected(selection, &model, &iter)) {
|
|
|
|
|
edit_show(NULL, glade_path);
|
|
|
|
@ -478,6 +431,18 @@ void main_edit_btn_save() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void tree_view_del_line() {
|
|
|
|
|
GtkTreeIter iter;
|
|
|
|
|
GtkTreeModel *model = GTK_TREE_MODEL(main_config.list);
|
|
|
|
|
GtkTreeSelection *selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(widgets->treeViewMain));
|
|
|
|
|
if(gtk_tree_selection_get_selected(selection, &model, &iter)) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void main_localization(main_window *widgets) {
|
|
|
|
|
/* Localisation | Локализация */
|
|
|
|
|
gtk_label_set_text(GTK_LABEL(widgets->HatLabel),TITLE_LABEL);
|
|
|
|
|