summaryrefslogtreecommitdiff
path: root/gtk/gtkicontheme.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-02-02 00:27:14 +0100
committerAlexander Larsson <alexl@redhat.com>2020-02-04 16:41:36 +0100
commitbbbe39fb44d2d9e40f0d92201f77e0680d2ff16a (patch)
tree14971b3436ceb5175562a502febabf6eab1c3d51 /gtk/gtkicontheme.h
parentb713b9f68dc443ca23e3fedaca7eb958741975d1 (diff)
downloadgtk+-bbbe39fb44d2d9e40f0d92201f77e0680d2ff16a.tar.gz
icontheme: Make text direction a lookup argument
Most users were just forgetting to set the proper flags. And flags aren't the right way to set this anyway, it was just acceptable as a workaround during GTK3 to not break API.
Diffstat (limited to 'gtk/gtkicontheme.h')
-rw-r--r--gtk/gtkicontheme.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/gtk/gtkicontheme.h b/gtk/gtkicontheme.h
index 193595cbb5..fa45f30f5e 100644
--- a/gtk/gtkicontheme.h
+++ b/gtk/gtkicontheme.h
@@ -61,10 +61,6 @@ typedef struct _GtkIconTheme GtkIconTheme;
* when symbolic icon names are given
* @GTK_ICON_LOOKUP_FORCE_SYMBOLIC: Try to always load symbolic icons, even
* when regular icon names are given
- * @GTK_ICON_LOOKUP_DIR_LTR: Try to load a variant of the icon for left-to-right
- * text direction
- * @GTK_ICON_LOOKUP_DIR_RTL: Try to load a variant of the icon for right-to-left
- * text direction
*
* Used to specify options for gtk_icon_theme_lookup_icon()
*/
@@ -76,9 +72,7 @@ typedef enum
GTK_ICON_LOOKUP_GENERIC_FALLBACK = 1 << 3,
GTK_ICON_LOOKUP_FORCE_SIZE = 1 << 4,
GTK_ICON_LOOKUP_FORCE_REGULAR = 1 << 5,
- GTK_ICON_LOOKUP_FORCE_SYMBOLIC = 1 << 6,
- GTK_ICON_LOOKUP_DIR_LTR = 1 << 7,
- GTK_ICON_LOOKUP_DIR_RTL = 1 << 8
+ GTK_ICON_LOOKUP_FORCE_SYMBOLIC = 1 << 6
} GtkIconLookupFlags;
/**
@@ -148,18 +142,21 @@ GtkIcon * gtk_icon_theme_lookup_icon (GtkIconTheme
const gchar *icon_name,
gint size,
gint scale,
+ GtkTextDirection direction,
GtkIconLookupFlags flags);
GDK_AVAILABLE_IN_ALL
GtkIcon * gtk_icon_theme_choose_icon (GtkIconTheme *self,
const gchar *icon_names[],
gint size,
gint scale,
+ GtkTextDirection direction,
GtkIconLookupFlags flags);
GDK_AVAILABLE_IN_ALL
GtkIcon * gtk_icon_theme_lookup_by_gicon (GtkIconTheme *self,
GIcon *icon,
gint size,
gint scale,
+ GtkTextDirection direction,
GtkIconLookupFlags flags);
GDK_AVAILABLE_IN_ALL
GList * gtk_icon_theme_list_icons (GtkIconTheme *self,