diff --git a/source/ubl-settings-video-monitor.c b/source/ubl-settings-video-monitor.c index 178216c..9b8d5ac 100644 --- a/source/ubl-settings-video-monitor.c +++ b/source/ubl-settings-video-monitor.c @@ -464,6 +464,12 @@ void yon_monitor_view_update(){ gtk_label_set_text(GTK_LABEL(window->ResoulutionLabel),parsed[0]); } } + if (yon_char_parsed_check_exist(parsed,parsed_size,"enabled")>-1){ + gtk_widget_set_tooltip_text(window->SwitchButton,ENABLED_LABEL); + } else { + gtk_widget_set_tooltip_text(window->SwitchButton,DISABLED_LABEL); + + } if (yon_char_parsed_check_exist(parsed,parsed_size,"enable")>-1){ gtk_widget_set_sensitive(window->MonitorImage,1); } diff --git a/source/ubl-strings.h b/source/ubl-strings.h index bf177bd..6cb3009 100644 --- a/source/ubl-strings.h +++ b/source/ubl-strings.h @@ -158,6 +158,8 @@ #define FAIL_LABEL _("Driver installation has failed") #define OPERATION_FAIL_LABEL _("Operation has failed") #define MANUAL_PORT_LABEL _("Manual port") +#define ENABLED_LABEL _("Enabled") +#define DISABLED_LABEL _("Disabled") #define INSTALL_CONFIRMATION_LABEL(target) yon_char_unite(_("Are you sure want to install driver "),"",target,"?",NULL) #define REMOVE_CONFIRMATION_LABEL(target) yon_char_unite(_("Are you sure want to remove driver "),"",target,"?",NULL) diff --git a/ubl-settings-video-monitor.glade b/ubl-settings-video-monitor.glade index 7b90ef4..37c36f4 100644 --- a/ubl-settings-video-monitor.glade +++ b/ubl-settings-video-monitor.glade @@ -1,5 +1,5 @@ - + @@ -109,6 +109,7 @@ True True True + Remove image14