[cheese] All ui buttons now have tooltips, fixes bug #622974
- From: Laura Lucas Alday <lauralucas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] All ui buttons now have tooltips, fixes bug #622974
- Date: Fri, 10 Dec 2010 21:41:17 +0000 (UTC)
commit 6dac0c5740e3e63a345739666495a971c4eb3978
Author: Laura Lucas Alday <lauralucasalday gmail com>
Date: Thu Dec 9 02:14:04 2010 -0300
All ui buttons now have tooltips, fixes bug #622974
data/cheese-actions.ui | 3 +++
data/cheese-main-window.ui | 8 ++++++++
src/cheese-window.vala | 5 +++--
3 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/data/cheese-actions.ui b/data/cheese-actions.ui
index 73a3486..1f24210 100644
--- a/data/cheese-actions.ui
+++ b/data/cheese-actions.ui
@@ -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=""/>
diff --git a/data/cheese-main-window.ui b/data/cheese-main-window.ui
index 99d059c..8d9a0b1 100644
--- a/data/cheese-main-window.ui
+++ b/data/cheese-main-window.ui
@@ -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>
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 41f4c68..ab980a7 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -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 ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]