Merge pull request 'master' (#97) from YanTheKaller/ubl-settings-manager:master into master

Reviewed-on: #97
master v2.17
Dmitry Razumov 2 months ago
commit 07c7eaab61

@ -87,9 +87,9 @@ void yon_config_chooser_save(GtkWidget *root){
char *path = (char*)gtk_entry_get_text(GTK_ENTRY(parameter->PathEntry));
if (!yon_char_is_empty(path)){
yon_window_config_add_instant_parameter("file",yon_configuration_window_section,path,YON_TYPE_STRING);
yon_ubl_status_box_spawn_infinite(GTK_CONTAINER(main_config.widgets->StatusBox),"config_mode",CONFIG_MODE_LABEL(path),BACKGROUND_IMAGE_INFO_TYPE);
yon_ubl_status_box_spawn(GTK_CONTAINER(main_config.widgets->StatusBox),CONFIG_MODE_LABEL(path),0,BACKGROUND_IMAGE_INFO_TYPE);
} else {
yon_window_config_erase_instant_parameter("file",yon_configuration_window_section);
yon_ubl_status_box_despawn_infinite(GTK_CONTAINER(main_config.widgets->StatusBox));
yon_ubl_status_box_despawn(GTK_CONTAINER(main_config.widgets->StatusBox));
}
}

@ -214,7 +214,7 @@ main_window *yon_main_window_setup(){
yon_window_config_get_parameter(settings_section,hide_banner_parameter, &banner_hidden,YON_TYPE_BOOLEAN);
gtk_revealer_set_transition_type(GTK_REVEALER(widgets->BannerRevealer),!banner_hidden?GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT:GTK_REVEALER_TRANSITION_TYPE_SLIDE_RIGHT);
gtk_revealer_set_reveal_child(GTK_REVEALER(widgets->BannerRevealer),!banner_hidden);
gtk_image_set_from_icon_name(GTK_IMAGE(widgets->BannerArrow),arrow_left_icon_path,GTK_ICON_SIZE_BUTTON);
gtk_image_set_from_icon_name(GTK_IMAGE(widgets->BannerArrow),!banner_hidden?arrow_left_icon_path:arrow_right_icon_path,GTK_ICON_SIZE_BUTTON);
}
gtk_widget_show(widgets->Window);
yon_interface_update(widgets);

Loading…
Cancel
Save