Show which monitor is being edited in the 'Monitor' label
2008-12-15 Federico Mena Quintero <federico@novell.com> * display-capplet.glade: Put the "Monitor" label inside an event box, so we can change the background color of the event box. Give names to both widgets: current_monitor_label, current_monitor_event_box. * xrandr-capplet.c (rebuild_gui): When a monitor is selected, update the "Monitor" label to include the monitor's name and color so the user will know which monitor he is editing. (rebuild_current_monitor_label): New function. (struct App): New fields current_monitor_label, current_monitor_event_box. Signed-off-by: Federico Mena Quintero <federico@novell.com> svn path=/trunk/; revision=9168
This commit is contained in:
parent
ded9c324a5
commit
42da2562f5
3 changed files with 76 additions and 15 deletions
|
@ -183,22 +183,30 @@
|
|||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label7">
|
||||
<widget class="GtkEventBox" id="current_monitor_event_box">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes"><b>Monitor</b></property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">True</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||
<property name="width_chars">-1</property>
|
||||
<property name="single_line_mode">False</property>
|
||||
<property name="angle">0</property>
|
||||
<property name="visible_window">True</property>
|
||||
<property name="above_child">False</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="current_monitor_label">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes"><b>Monitor</b></property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">True</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
||||
<property name="width_chars">-1</property>
|
||||
<property name="single_line_mode">False</property>
|
||||
<property name="angle">0</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue