[cheese] Use GtkIconTheme built-in RTL support
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Use GtkIconTheme built-in RTL support
- Date: Thu, 7 Aug 2014 17:15:39 +0000 (UTC)
commit 43789f571d956199c9eff25253918c1c20f8650b
Author: David King <amigadave amigadave com>
Date: Thu Aug 7 18:12:04 2014 +0100
Use GtkIconTheme built-in RTL support
data/cheese-main-window.ui | 2 ++
src/cheese-window.vala | 15 ---------------
2 files changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/data/cheese-main-window.ui b/data/cheese-main-window.ui
index 4118e36..c0ff90f 100644
--- a/data/cheese-main-window.ui
+++ b/data/cheese-main-window.ui
@@ -119,6 +119,7 @@
<property name="visible">True</property>
<child>
<object class="GtkImage" id="effects_prev_page_button_image">
+ <property name="icon-name">go-previous-symbolic</property>
<property name="visible">True</property>
</object>
</child>
@@ -155,6 +156,7 @@
<property name="visible">True</property>
<child>
<object class="GtkImage" id="effects_next_page_button_image">
+ <property name="icon-name">go-next-symbolic</property>
<property name="visible">True</property>
</object>
</child>
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 9d8aac5..4c9dff3 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -72,10 +72,6 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
[GtkChild]
private Gtk.ToggleButton effects_toggle_button;
[GtkChild]
- private Gtk.Image effects_prev_page_button_image;
- [GtkChild]
- private Gtk.Image effects_next_page_button_image;
- [GtkChild]
private Gtk.Widget buttons_area;
private Gtk.Menu thumbnail_popup;
@@ -133,17 +129,6 @@ public class Cheese.MainWindow : Gtk.ApplicationWindow
header_bar.visible = true;
this.set_titlebar (header_bar);
}
-
- if (get_direction () == Gtk.TextDirection.RTL)
- {
- effects_prev_page_button_image.icon_name = "go-previous-rtl-symbolic";
- effects_next_page_button_image.icon_name = "go-next-rtl-symbolic";
- }
- else
- {
- effects_prev_page_button_image.icon_name = "go-previous-symbolic";
- effects_next_page_button_image.icon_name = "go-next-symbolic";
- }
}
private void set_window_title (string title)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]