WIP tooltips for monitor

pull/137/head
parent d6f280630a
commit f4178f9f1f
No known key found for this signature in database
GPG Key ID: FF1D842BF4DDE92B

@ -464,6 +464,12 @@ void yon_monitor_view_update(){
gtk_label_set_text(GTK_LABEL(window->ResoulutionLabel),parsed[0]); 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){ if (yon_char_parsed_check_exist(parsed,parsed_size,"enable")>-1){
gtk_widget_set_sensitive(window->MonitorImage,1); gtk_widget_set_sensitive(window->MonitorImage,1);
} }

@ -158,6 +158,8 @@
#define FAIL_LABEL _("Driver installation has failed") #define FAIL_LABEL _("Driver installation has failed")
#define OPERATION_FAIL_LABEL _("Operation has failed") #define OPERATION_FAIL_LABEL _("Operation has failed")
#define MANUAL_PORT_LABEL _("Manual port") #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 "),"<b>",target,"</b>?",NULL) #define INSTALL_CONFIRMATION_LABEL(target) yon_char_unite(_("Are you sure want to install driver "),"<b>",target,"</b>?",NULL)
#define REMOVE_CONFIRMATION_LABEL(target) yon_char_unite(_("Are you sure want to remove driver "),"<b>",target,"</b>?",NULL) #define REMOVE_CONFIRMATION_LABEL(target) yon_char_unite(_("Are you sure want to remove driver "),"<b>",target,"</b>?",NULL)

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 --> <!-- Generated with glade 3.40.0 -->
<interface> <interface>
<requires lib="gtk+" version="3.24"/> <requires lib="gtk+" version="3.24"/>
<object class="GtkOverlay" id="ScreenOverlay"> <object class="GtkOverlay" id="ScreenOverlay">
@ -109,6 +109,7 @@
<property name="visible">True</property> <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">Remove</property>
<property name="image">image14</property> <property name="image">image14</property>
<style> <style>
<class name="thin"/> <class name="thin"/>
@ -127,6 +128,7 @@
<property name="visible">True</property> <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">Enable</property>
<property name="image">image13</property> <property name="image">image13</property>
<style> <style>
<class name="thin"/> <class name="thin"/>
@ -146,6 +148,7 @@
<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="no-show-all">True</property> <property name="no-show-all">True</property>
<property name="tooltip-text" translatable="yes">Configure</property>
<property name="halign">end</property> <property name="halign">end</property>
<property name="image">image3</property> <property name="image">image3</property>
<style> <style>

Loading…
Cancel
Save