Merge pull request 'Updated status messages for library update' (#78) from YanTheKaller/libublsettingsui-gtk3:master into master

Reviewed-on: #78
pull/82/head^2 v1.70
Dmitry Razumov 2 months ago
commit abbc2409ec

@ -134,6 +134,7 @@
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="image">image2</property>
<accelerator key="Return" signal="clicked"/>
<style>
<class name="marginright"/>
</style>

@ -144,69 +144,77 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox" id="mainStatusBox">
<object class="GtkRevealer">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="transition-type">slide-up</property>
<property name="reveal-child">True</property>
<child>
<object class="GtkImage" id="mainStatusIcon">
<object class="GtkBox" id="mainStatusBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">5</property>
<property name="margin-bottom">5</property>
<property name="pixel-size">25</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="mainStatusLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="wrap">True</property>
<property name="xalign">0</property>
<attributes>
<attribute name="weight" value="bold"/>
<attribute name="foreground" value="#4d4d4d4d4d4d"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkImage" id="ModeStatusImage">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">5</property>
<property name="margin-bottom">5</property>
<property name="pixel-size">25</property>
<property name="icon-name">com.ublinux.libublsettingsui-gtk3.statemode-yellow-symbolic</property>
<property name="icon_size">6</property>
<child>
<object class="GtkImage" id="mainStatusIcon">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">5</property>
<property name="margin-bottom">5</property>
<property name="pixel-size">25</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="mainStatusLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="margin-left">5</property>
<property name="margin-right">5</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">6</property>
<property name="margin-bottom">6</property>
<property name="wrap">True</property>
<property name="xalign">0</property>
<attributes>
<attribute name="weight" value="bold"/>
<attribute name="foreground" value="#4d4d4d4d4d4d"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkImage" id="ModeStatusImage">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
<property name="margin-top">5</property>
<property name="margin-bottom">5</property>
<property name="pixel-size">25</property>
<property name="icon-name">com.ublinux.libublsettingsui-gtk3.statemode-yellow-symbolic</property>
<property name="icon_size">6</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack-type">end</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack-type">end</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>

@ -194,14 +194,14 @@ void yon_save_window_set_status(template_saving_window *window,char *path,YON_CO
window->type=type;
window->custom_save_path=path;
if (type==YON_CONFIG_BOTH){
yon_ubl_status_box_spawn_infinite(GTK_CONTAINER(window->StatusBox),"savingTarget",SAVING_GLOBAL_LOCAL_STATE_LABEL,BACKGROUND_IMAGE_INFO_TYPE);
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),SAVING_GLOBAL_LOCAL_STATE_LABEL,0,BACKGROUND_IMAGE_INFO_TYPE);
} else if (type==YON_CONFIG_GLOBAL){
yon_ubl_status_box_spawn_infinite(GTK_CONTAINER(window->StatusBox),"savingTarget",SAVING_GLOBAL_STATE_LABEL,BACKGROUND_IMAGE_INFO_TYPE);
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),SAVING_GLOBAL_STATE_LABEL,0,BACKGROUND_IMAGE_INFO_TYPE);
} else if (type==YON_CONFIG_LOCAL){
yon_ubl_status_box_spawn_infinite(GTK_CONTAINER(window->StatusBox),"savingTarget",SAVING_LOCAL_STATE_LABEL,BACKGROUND_IMAGE_INFO_TYPE);
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),SAVING_LOCAL_STATE_LABEL,0,BACKGROUND_IMAGE_INFO_TYPE);
} else if (type==YON_CONFIG_CUSTOM){
yon_ubl_status_box_spawn_infinite(GTK_CONTAINER(window->StatusBox),"savingTarget",SAVING_CUSTOM_STATE_LABEL(path),BACKGROUND_IMAGE_INFO_TYPE);
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),SAVING_CUSTOM_STATE_LABEL(path),0,BACKGROUND_IMAGE_INFO_TYPE);
}
textdomain(template_app_information.app_locale);
}
@ -639,7 +639,7 @@ template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
template_saving_window *yon_exit_window_new(){
template_saving_window *window = yon_saving_window_new();
yon_ubl_status_box_spawn_infinite(GTK_CONTAINER(window->StatusBox),"remove_status",UNSAVED_LABEL,BACKGROUND_IMAGE_FAIL_TYPE);
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),UNSAVED_LABEL,0,BACKGROUND_IMAGE_FAIL_TYPE);
gtk_button_set_label(GTK_BUTTON(window->SaveButton),EXIT_LABEL);
g_signal_handlers_disconnect_by_func(G_OBJECT(window->SaveButton), G_CALLBACK(on_save_parameters),window);
g_signal_handlers_disconnect_by_func(G_OBJECT(window->ToggleCell), G_CALLBACK(on_save_window_parameter_switched),window);

@ -618,9 +618,9 @@ template_main_window *yon_ubl_window_setup(){
void yon_on_email_check(GtkEntry *self,GdkEventFocus *event,GtkContainer *status){
char *text = (char*)gtk_entry_get_text(self);
if (!strstr(text,"@")){
yon_ubl_status_box_spawn_infinite(status,"invalid_email",EMAIL_INVALID_LABEL,BACKGROUND_IMAGE_FAIL_TYPE);
yon_ubl_status_box_spawn(status,EMAIL_INVALID_LABEL,0,BACKGROUND_IMAGE_FAIL_TYPE);
} else {
yon_ubl_status_box_despawn_infinite(status);
yon_ubl_status_box_despawn(status);
}
}
@ -670,9 +670,9 @@ void yon_on_path_check(GtkEntry *self,GdkEventFocus *event,GtkContainer *status)
text = new_text;
}
if (!strstr(text,"/")){
yon_ubl_status_box_spawn_infinite(status,"invalid_path",PATH_INVALID_LABEL,BACKGROUND_IMAGE_FAIL_TYPE);
yon_ubl_status_box_spawn(status,PATH_INVALID_LABEL,0,BACKGROUND_IMAGE_FAIL_TYPE);
} else {
yon_ubl_status_box_despawn_infinite(status);
yon_ubl_status_box_despawn(status);
}
}

Loading…
Cancel
Save