Browse Source

--- Merging r36294 into '.':
U packages/gtk2/src/gtk+/gtk/gtkicontheme.inc
--- Recording mergeinfo for merge of r36294 into '.':
U .

# revisions: 36294

git-svn-id: branches/fixes_3_0@37099 -

marco 8 years ago
parent
commit
7f170789e9
1 changed files with 10 additions and 1 deletions
  1. 10 1
      packages/gtk2/src/gtk+/gtk/gtkicontheme.inc

+ 10 - 1
packages/gtk2/src/gtk+/gtk/gtkicontheme.inc

@@ -32,6 +32,12 @@ type
      gtk_icon_theme_lookup_icon() includes builtin icons
      as well as files. For a builtin icon, gdk_icon_info_get_filename()
      returns %NULL and you need to call gdk_icon_info_get_builtin_pixbuf().
+   @GTK_ICON_LOOKUP_GENERIC_FALLBACK
+     Try to shorten icon name at '-' characters before looking at inherited
+     themes. For more general fallback, seegtk_icon_theme_choose_icon().
+     Since 2.12.
+	 @GTK_ICON_LOOKUP_FORCE_SIZE
+	   Always return the icon scaled to the requested size. Since 2.14.
 
    Used to specify options for gtk_icon_theme_lookup_icon()
    }
@@ -39,7 +45,10 @@ type
    PGtkIconLookupFlags = ^TGtkIconLookupFlags;
    TGtkIconLookupFlags = (GTK_ICON_LOOKUP_NO_SVG := 1 shl 0,
                           GTK_ICON_LOOKUP_FORCE_SVG := 1 shl 1,
-                          GTK_ICON_LOOKUP_USE_BUILTIN := 1 shl 2);
+                          GTK_ICON_LOOKUP_USE_BUILTIN := 1 shl 2,
+                          GTK_ICON_LOOKUP_GENERIC_FALLBACK := 1 shl 3,
+                          GTK_ICON_LOOKUP_FORCE_SIZE := 1 shl 4
+                          );
 
 {
    GtkIconThemeError: