Merged Add and Create storage buttons

pull/127/head
parent bc9eb3e71f
commit 423f073f0d
No known key found for this signature in database
GPG Key ID: FF1D842BF4DDE92B

@ -41,6 +41,7 @@ void on_storage_open(GtkWidget *self, storage_config_window *window){
filechooser_window *dialog = yon_file_chooser_window_new(GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); filechooser_window *dialog = yon_file_chooser_window_new(GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER);
yon_gtk_window_setup(GTK_WINDOW(dialog->Window),GTK_WINDOW(window->MainWindow),OPEN_EXISTING_TOOLTIP_LABEL,icon_path,"file_chooser_window"); yon_gtk_window_setup(GTK_WINDOW(dialog->Window),GTK_WINDOW(window->MainWindow),OPEN_EXISTING_TOOLTIP_LABEL,icon_path,"file_chooser_window");
gtk_file_chooser_set_create_folders(GTK_FILE_CHOOSER(dialog->MainFileChooser),1);
if (yon_char_is_empty(main_config.last_selection)){ if (yon_char_is_empty(main_config.last_selection)){
char *user_folder_path = yon_ubl_user_get_home_directory(); char *user_folder_path = yon_ubl_user_get_home_directory();
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog->MainFileChooser),user_folder_path); gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog->MainFileChooser),user_folder_path);

@ -111,7 +111,6 @@
</child> </child>
<child> <child>
<object class="GtkButton" id="CreateNewButton"> <object class="GtkButton" id="CreateNewButton">
<property name="visible">True</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">Create new</property> <property name="tooltip-text" translatable="yes">Create new</property>

Loading…
Cancel
Save