1. 13 Jun, 2018 1 commit
    • Jehan's avatar
      gio: fixing duplicate icons and review comments. · ab53a546
      Jehan authored
      The basic test for duplicate icon names was not working fine when taking
      into account fallbacks and icon style mix. This fixes it.
      Also resolve the few review comments, i.e.: comment explaining
      g_themed_icon_update_names() and the priority order applied to icons;
      and using guint for 'i'.
  2. 08 Jun, 2018 4 commits
    • Jehan's avatar
      gio: update icon list when appending or prepending an icon name to... · 8f729c06
      Jehan authored
      ... a theme icon.
      Otherwise fallbacks of the added icon name are not added to the list (if
      use-default-fallbacks is set), nor is the regular/symbolic variant. Also
      if we do not recreate the finale list from scratch, sorting of icons and
      their variants may end up wrong.
      To this end, let's keep around the icon names used for initialization,
      separate from the finale name list.
    • Jehan's avatar
      gio: do not add an icon name already in the list. · 5fb6d788
      Jehan authored
      This may happen when creating an icon with several icon name whereas one
      is already a variant of a previous one.
    • Jehan's avatar
      gio: generate (non-)symbolic and fallback variants for every icon name. · 92900442
      Jehan authored
      When a themed icon is constructed with several input icon names, add the
      variants (symbolic as well as level fallbacks) for every icon names, not
      only the first one.
      The search order is: first icon name, then its level fallbacks, then
      second icon name, then its level fallbacks, then all style variants
      (symbolic or regular, opposite to requested style) keeping the same
      order again.
      This fixes the contenttype GIO unit test.
    • Jehan's avatar
      gio: icons should fallback to non-preferred style appropriately. · e0f2671a
      Jehan authored
      Whatever the preferred icon style is (symbolic, regular or the requested
      style), fallbacking to the other style in case of absent variant is
      better than not finding any icon at all.
      Also style fallbacking should be managed separately from property
      "use-default-fallbacks". Default fallbacks are meant for the process of
      getting up in context levels (as separated by dashes in icon name). Even
      though it also uses dash characters in format, this is a different
      concept as the variant of styles.
      Without this commit for instance, if an icon only had a symbolic
      variant, and the theme had "-gtk-icon-style" set to "regular" while your
      GTK+ application requested the regular icon name, you were getting no
      icons, and the application would look completely broken.
      Now one would at least fallback to the symbolic icon as last resort
      (which is infinitely better than having no icons).
  3. 29 May, 2017 1 commit
  4. 12 Oct, 2016 1 commit
  5. 01 Feb, 2014 1 commit
  6. 31 Jan, 2014 2 commits
  7. 24 Oct, 2013 2 commits
  8. 17 Oct, 2013 1 commit
  9. 13 Aug, 2013 1 commit
  10. 21 Apr, 2013 1 commit
    • Allison Karlitskaya's avatar
      GIcon: add g_icon_[de]serialize() · c16f914b
      Allison Karlitskaya authored
      Add support for serialising a GIcon to a GVariant and deserialising the
      result back to a GIcon.
      This solves a number of problems suffered by the existing to_string()
      API, primarily these:
       - not forcing the icon to be a utf8 string means that we can
         efficiently encode a PNG (ie: just give the array of bytes)
       - there is no need to ensure that proper types are loaded before using
         the deserialisation interface.  'Foreign' icon types will probably
         emit a serialised format the deserialises to a GBytesIcon.
      We additionally clearly document what is required for being a consumer
      or implementation of #GIcon.
      Further patches will be required to GdkPixbuf and GVfsIcon to bring
      their implementations in line with the new rules (essentially: introduce
      implementations of the new serialize() API).
  11. 11 Jan, 2012 1 commit
  12. 27 Dec, 2010 1 commit
  13. 12 Oct, 2010 1 commit
  14. 24 Sep, 2010 1 commit
  15. 07 Jul, 2010 1 commit
  16. 07 Sep, 2009 1 commit
  17. 18 May, 2009 1 commit
  18. 22 Apr, 2009 1 commit
  19. 21 Oct, 2008 1 commit
    • Alexander Larsson's avatar
      Bug 555740 - gicon serialization Based on patch from David Zeuthen · 4f0b18d2
      Alexander Larsson authored
      2008-10-21  Alexander Larsson  <alexl@redhat.com>
      	Bug 555740 - gicon serialization
      	Based on patch from David Zeuthen
              * gicon.[ch]:
              * gio.symbols:
      	Add g_icon_to_string() and g_icon_new_for_string().
              * gemblem.c:
              * gemblemedicon.c:
              * gfileicon.c:
              * gthemedicon.c:
      	Implement icon serialization for built-in icon types
              * tests/Makefile.am:
              * tests/g-icon.c:
      	Added GIcon serialization test
      svn path=/trunk/; revision=7618
  20. 06 Aug, 2008 1 commit
  21. 01 Jul, 2008 1 commit
    • Cody Russell's avatar
      Moved all relevant typedefs into these files. · 3d93bf69
      Cody Russell authored
      2008-07-01  Cody Russell  <bratsche@gnome.org>
              * gio/gioenums.h:
              * gio/giotypes.h:
      	Moved all relevant typedefs into these	files.
              * gio/*.[ch]:
      	Updated wrt added files.
              Split types into separate file	for easier maintainership. (#538564)
      svn path=/trunk/; revision=7127
  22. 22 Jun, 2008 1 commit
  23. 16 Jun, 2008 1 commit
  24. 10 Jun, 2008 1 commit
  25. 11 Mar, 2008 1 commit
  26. 10 Mar, 2008 1 commit
  27. 06 Mar, 2008 1 commit
    • Alexander Larsson's avatar
      Fix sparse warnings (#519489) · 5241d96b
      Alexander Larsson authored
      2008-03-06  Alexander Larsson  <alexl@redhat.com>
              * gdesktopappinfo.c:
              * gfilemonitor.c:
              * gthemedicon.c:
              * gunionvolumemonitor.c:
              * gunixmounts.c:
              * tests/g-file.c:
              * tests/live-g-file.c:
              * xdgmime/xdgmimecache.c:
      	Fix sparse warnings (#519489)
      svn path=/trunk/; revision=6632
  28. 21 Feb, 2008 2 commits
    • Matthias Clasen's avatar
      Doc fixes · f3144c7e
      Matthias Clasen authored
      svn path=/trunk/; revision=6554
    • David Zeuthen's avatar
      Implement this function by moving bits from glocalfileinfo.c · bfda430e
      David Zeuthen authored
      2008-02-21  David Zeuthen  <davidz@redhat.com>
      	* glocalfileinfo.c: (_g_local_file_info_get):
      	* gcontenttype.c:
      	(g_content_type_get_icon): Implement this function by
      	moving bits from glocalfileinfo.c
      	(g_content_type_get_description): Unalias before getting
      	description (#517687)
      	* gfile.c: (g_file_class_init),
      	* gfile.h: Implement async version of
      	* gfileinfo.h: Add new attributes for filesystem::use-preview
      	* gio.symbols: Update
      	* gthemedicon.c: (g_themed_icon_append_name):
      	* gthemedicon.h: Add new new convenience function.
      	* gunionvolumemonitor.c: (g_union_volume_monitor_dispose),
      	(get_mounts), (get_volumes), (get_connected_drives),
      	(get_volume_for_uuid), (get_mount_for_uuid),
      	(g_union_volume_monitor_init), (populate_union_monitor),
      	(g_volume_monitor_get), (_g_mount_get_for_mount_path),
      	* gvolumemonitor.c:
      	* gvolumemonitor.h: Use recursive locks so it's safe for volume
      	monitor implementations to call into the main volume monitor. Also
      	separate object initialization and volume monitor initialization
      	such that non-native volume monitors can properly adopt their
      	mounts away.
      svn path=/trunk/; revision=6550
  29. 21 Jan, 2008 1 commit
  30. 09 Jan, 2008 1 commit
    • Alexander Larsson's avatar
      Add g_themed_icon_new_with_default_fallbacks · 47b8809e
      Alexander Larsson authored
      2008-01-09  Alexander Larsson  <alexl@redhat.com>
              * gio.symbols:
              * gthemedicon.[ch]:
              Add g_themed_icon_new_with_default_fallbacks
              * gunixmounts.c:
      	Use default fallbacks for icons
      svn path=/trunk/; revision=6284
  31. 18 Dec, 2007 1 commit
  32. 12 Dec, 2007 1 commit
    • Alexander Larsson's avatar
      Fix up a bunch of details in the docs. · 41d1650c
      Alexander Larsson authored
      2007-12-12  Alexander Larsson  <alexl@redhat.com>
              * gappinfo.[ch]:
              * gasyncresult.c:
              * gbufferedinputstream.c:
              * gbufferedoutputstream.c:
              * gcancellable.c:
              * gcontenttype.c:
              * gdatainputstream.[ch]:
              * gdesktopappinfo.c:
              * gdirectorymonitor.c:
              * gfile.[ch]:
              * gfileattribute.[ch]:
              * gfileicon.[ch]:
              * gfileinfo.h:
              * gfileinputstream.h:
              * gfilemonitor.[ch]:
              * gfileoutputstream.[ch]:
              * gfilterinputstream.h:
              * gfilteroutputstream.h:
              * gicon.h:
              * gioscheduler.c:
              * gloadableicon.[ch]:
              * gmemoryinputstream.c:
              * gmountoperation.c:
              * gthemedicon.c:
      	Fix up a bunch of details in the docs.
              * glocalfileinfo.c:
      	CR/LF -> LF fixups
      svn path=/trunk/; revision=6100
  33. 01 Dec, 2007 1 commit
  34. 30 Nov, 2007 1 commit