[cheese/three-point-oh] Connected the buttons beneath the viewport to their respective actions
- From: Yuvaraj Pandian <yuvipanda src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/three-point-oh] Connected the buttons beneath the viewport to their respective actions
- Date: Sun, 30 May 2010 20:33:37 +0000 (UTC)
commit e13a0e802748e0b6c4bf54f2bd0afd6991fb94a1
Author: Yuvaraj Pandian T <yuvipanda gmail com>
Date: Mon May 31 00:46:14 2010 +0530
Connected the buttons beneath the viewport to their respective actions
data/cheese-actions.ui | 2 +-
data/cheese-main-window.ui | 36 +++++++++++++++++++++++-------------
2 files changed, 24 insertions(+), 14 deletions(-)
---
diff --git a/data/cheese-actions.ui b/data/cheese-actions.ui
index a982be3..42ef866 100644
--- a/data/cheese-actions.ui
+++ b/data/cheese-actions.ui
@@ -220,7 +220,7 @@
<child>
<object class="GtkActionGroup" id="effects_actions">
<child>
- <object class="GtkToggleAction" id="effects">
+ <object class="GtkToggleAction" id="effects_toggle">
<property name="name">Effects</property>
<property name="label">_Effects</property>
<signal name="activate" handler="cheese_main_window_on_effects_toggle" />
diff --git a/data/cheese-main-window.ui b/data/cheese-main-window.ui
index da1a3e1..9d6feb0 100644
--- a/data/cheese-main-window.ui
+++ b/data/cheese-main-window.ui
@@ -2,16 +2,6 @@
<interface>
<requires lib="gtk+" version="2.16" />
- <object class="GtkImage" id="video_image">
- <property name="icon_name">video-x-generic</property>
- </object>
- <object class="GtkImage" id="burst_image">
- <property name="icon_name">cheese-take-burst</property>
- </object>
- <object class="GtkImage" id="record_image">
- <property name="icon_name">gtk-media-record</property>
- </object>
-
<object class="GtkVBox" id="mainbox_normal">
<property name="homogeneous">False</property>
<child>
@@ -44,17 +34,35 @@
<property name="spacing">2</property>
<child>
<object class="GtkToggleButton" id="photo_toggle_button">
- <property name="image">photo_image</property>
+ <property name="related-action">photo_mode</property>
+ <property name="use-action-appearance">False</property>
+ <child>
+ <object class="GtkImage" id="photo_toggle_button_image">
+ <property name="icon-name">cheese-take-photo</property>
+ </object>
+ </child>
</object>
</child>
<child>
<object class="GtkToggleButton" id="video_toggle_button">
- <property name="image">video_image</property>
+ <property name="related-action">video_mode</property>
+ <property name="use-action-appearance">False</property>
+ <child>
+ <object class="GtkImage" id="video_toggle_button_image">
+ <property name="icon-name">video-x-generic</property>
+ </object>
+ </child>
</object>
</child>
<child>
<object class="GtkToggleButton" id="burst_toggle_button">
- <property name="image">burst_image</property>
+ <property name="related-action">burst_mode</property>
+ <property name="use-action-appearance">False</property>
+ <child>
+ <object class="GtkImage" id="burst_toggle_button_image">
+ <property name="icon-name">cheese-take-burst</property>
+ </object>
+ </child>
</object>
</child>
</object>
@@ -70,6 +78,7 @@
<property name="yscale">0</property>
<child>
<object class="GtkButton" id="take_action_button">
+ <property name="related-action">take_photo</property>
<child>
<object class="GtkHBox" id="take_action_button_internal_hbox">
<property name="spacing">2</property>
@@ -100,6 +109,7 @@
<child>
<object class="GtkToggleButton" id="effects_button">
+ <property name="related-action">effects_toggle</property>
<child>
<object class="GtkHBox" id="effects_button_internal_hbox">
<property name="visible">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]