Commit 6dac0c57 authored by Laura Lucas Alday's avatar Laura Lucas Alday

All ui buttons now have tooltips, fixes bug #622974

parent 579c5406
......@@ -125,6 +125,7 @@
<object class="GtkAction" id="take_photo">
<property name="name">TakePhoto</property>
<property name="label" translatable="yes">_Take a Photo</property>
<property name="tooltip" translatable="yes">Take a photo</property>
<signal name="activate" handler="cheese_main_window_on_take_action"/>
</object>
<accelerator key="space" modifiers=""/>
......@@ -133,6 +134,7 @@
<object class="GtkAction" id="take_video">
<property name="name">TakeVideo</property>
<property name="label" translatable="yes">_Record a Video</property>
<property name="tooltip" translatable="yes">Record a video</property>
<signal name="activate" handler="cheese_main_window_on_take_action"/>
</object>
<accelerator key="space" modifiers=""/>
......@@ -141,6 +143,7 @@
<object class="GtkAction" id="take_burst">
<property name="name">TakeBurst</property>
<property name="label" translatable="yes">Take _Multiple Photos</property>
<property name="tooltip" translatable="yes">Take multiple photos</property>
<signal name="activate" handler="cheese_main_window_on_take_action"/>
</object>
<accelerator key="space" modifiers=""/>
......
......@@ -40,6 +40,7 @@
<object class="GtkToggleButton" id="photo_toggle_button">
<property name="related-action">photo_mode</property>
<property name="use-action-appearance">False</property>
<property name="tooltip_text" translatable="yes">Photo mode</property>
<child>
<object class="GtkImage" id="photo_toggle_button_image">
<property name="icon-name">cheese-take-photo</property>
......@@ -51,6 +52,7 @@
<object class="GtkToggleButton" id="video_toggle_button">
<property name="related-action">video_mode</property>
<property name="use-action-appearance">False</property>
<property name="tooltip_text" translatable="yes">Video mode</property>
<child>
<object class="GtkImage" id="video_toggle_button_image">
<property name="icon-name">video-x-generic</property>
......@@ -62,6 +64,7 @@
<object class="GtkToggleButton" id="burst_toggle_button">
<property name="related-action">burst_mode</property>
<property name="use-action-appearance">False</property>
<property name="tooltip_text" translatable="yes">Photo burst mode</property>
<child>
<object class="GtkImage" id="burst_toggle_button_image">
<property name="icon-name">cheese-take-burst</property>
......@@ -82,6 +85,7 @@
<child>
<object class="GtkButton" id="take_action_button">
<property name="related-action">take_photo</property>
<property name="tooltip_text" translatable="yes">Take a photo</property>
<child>
<object class="GtkHBox" id="take_action_button_internal_hbox">
<property name="spacing">2</property>
......@@ -117,6 +121,7 @@
<property name="related-action">effects_page_prev</property>
<property name="width-request">32</property>
<property name="relief">GTK_RELIEF_NONE</property>
<property name="tooltip_text" translatable="yes">Previous effect</property>
<child>
<object class="GtkImage" id="effects_prev_page_button_image">
<property name="stock">gtk-go-back</property>
......@@ -127,6 +132,7 @@
<child>
<object class="GtkToggleButton" id="effects_toggle_button">
<property name="related-action">effects_toggle</property>
<property name="tooltip_text" translatable="yes">Effects</property>
<child>
<object class="GtkHBox" id="effects_toggle_button_internal_hbox">
<property name="visible">True</property>
......@@ -155,6 +161,7 @@
<property name="related-action">effects_page_next</property>
<property name="width-request">32</property>
<property name="relief">GTK_RELIEF_NONE</property>
<property name="tooltip_text" translatable="yes">Next effect</property>
<child>
<object class="GtkImage" id="effects_prev_next_button_image">
<property name="stock">gtk-go-forward</property>
......@@ -176,6 +183,7 @@
<object class="GtkButton" id="leave_fullscreen_button">
<property name="use-action-appearance">False</property>
<property name="related-action">fullscreen</property>
<property name="tooltip_text" translatable="yes">Leave fullscreen</property>
<child>
<object class="GtkHBox" id="fullscreen_button_internal_hbox">
<property name="spacing">2</property>
......
......@@ -447,8 +447,9 @@ public class Cheese.MainWindow : Gtk.Window
take_action_button.related_action = take_burst_action;
break;
}
take_action_button_label.label = "<b>" + take_action_button.related_action.label + "</b>";
}
take_action_button_label.label = "<b>" + take_action_button.related_action.label + "</b>";
take_action_button.tooltip_text = take_action_button.related_action.tooltip;
}
private TimeoutSource fullscreen_timeout;
private void clear_fullscreen_timeout ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment