[gnome-font-viewer] font-view: don't explicitly load RTL icons
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-font-viewer] font-view: don't explicitly load RTL icons
- Date: Fri, 2 Sep 2016 16:56:55 +0000 (UTC)
commit a1bffb51ef3d9ba1017cc1a02563df5b672bcba7
Author: Cosimo Cecchi <cosimo endlessm com>
Date: Fri Sep 2 09:53:53 2016 -0700
font-view: don't explicitly load RTL icons
GTK does it for us these days. Bump minimum version to 3.20 as well.
https://bugzilla.gnome.org/show_bug.cgi?id=770748
configure.ac | 2 +-
src/font-view.c | 5 +----
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1d4d79c..26b322f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,7 +34,7 @@ AC_CACHE_SAVE
GLIB_GSETTINGS
GLIB_MIN_VERSION=2.35.1
-GTK_MIN_VERSION=3.11.4
+GTK_MIN_VERSION=3.20.0
PKG_CHECK_MODULES(FONTVIEW,
fontconfig
diff --git a/src/font-view.c b/src/font-view.c
index ac356e0..8c09cb6 100644
--- a/src/font-view.c
+++ b/src/font-view.c
@@ -543,7 +543,6 @@ font_view_application_do_open (FontViewApplication *self,
{
GtkWidget *back_image;
gchar *uri;
- gboolean rtl;
font_view_ensure_model (self);
@@ -572,9 +571,7 @@ font_view_application_do_open (FontViewApplication *self,
if (self->back_button == NULL) {
self->back_button = gtk_button_new ();
- rtl = gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL;
- back_image = gtk_image_new_from_icon_name (rtl ? "go-previous-rtl-symbolic" :
- "go-previous-symbolic",
+ back_image = gtk_image_new_from_icon_name ("go-previous-symbolic",
GTK_ICON_SIZE_MENU);
gtk_button_set_image (GTK_BUTTON (self->back_button), back_image);
gtk_widget_set_tooltip_text (self->back_button, _("Back"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]