Moved add button at storage configuration window

pull/41/head
parent 09716940b7
commit 4ffbef09d8

@ -268,6 +268,7 @@ void on_repo_add(GtkWidget *self, storage_config_window *window){
} }
yon_window_config_add_instant_parameter(path,"storage_info",yon_char_parsed_to_string(old_repos_parsed,old_repos_size,","),YON_TYPE_STRING); yon_window_config_add_instant_parameter(path,"storage_info",yon_char_parsed_to_string(old_repos_parsed,old_repos_size,","),YON_TYPE_STRING);
yon_char_parsed_free(old_repos_parsed,old_repos_size); yon_char_parsed_free(old_repos_parsed,old_repos_size);
yon_debug_output("%s\n",create_storage_command(path, new_repo));
yon_launch(create_storage_command(path, new_repo)); yon_launch(create_storage_command(path, new_repo));
int size; int size;
config_str dirs = yon_file_list_dirs(child_path,&size); config_str dirs = yon_file_list_dirs(child_path,&size);
@ -291,7 +292,8 @@ void on_repo_add(GtkWidget *self, storage_config_window *window){
} }
} }
closedir(current_dir); closedir(current_dir);
yon_window_config_add_instant_parameter(arch_path,"package_info",yon_char_parsed_to_string(final,size,","),YON_TYPE_STRING); if (size)
yon_window_config_add_instant_parameter(arch_path,"package_info",yon_char_parsed_to_string(final,final_size,","),YON_TYPE_STRING);
} }
} }
yon_char_parsed_free(dirs,size); yon_char_parsed_free(dirs,size);

@ -195,6 +195,12 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="shadow-type">none</property> <property name="shadow-type">none</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">5</property>
<child> <child>
<object class="GtkBox" id="ReposBox"> <object class="GtkBox" id="ReposBox">
<property name="visible">True</property> <property name="visible">True</property>
@ -205,12 +211,8 @@
<placeholder/> <placeholder/>
</child> </child>
</object> </object>
</child>
</object>
</child>
</object>
<packing> <packing>
<property name="expand">True</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="position">0</property> <property name="position">0</property>
</packing> </packing>
@ -259,6 +261,17 @@
</child> </child>
</object> </object>
</child> </child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</object>
</child>
</object>
</child>
<child type="label"> <child type="label">
<object class="GtkLabel"> <object class="GtkLabel">
<property name="visible">True</property> <property name="visible">True</property>

Loading…
Cancel
Save