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'.
      ab53a546
  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.
      8f729c06
    • 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.
      5fb6d788
    • 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.
      92900442
    • 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).
      e0f2671a
  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).
      
      https://bugzilla.gnome.org/show_bug.cgi?id=688820
      c16f914b
  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
      4f0b18d2
  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
      3d93bf69
  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
      5241d96b
  28. 21 Feb, 2008 2 commits
    • Matthias Clasen's avatar
      Doc fixes · f3144c7e
      Matthias Clasen authored
      svn path=/trunk/; revision=6554
      f3144c7e
    • 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),
      	(g_file_query_filesystem_info_async),
      	(g_file_query_filesystem_info_finish),
      	(query_filesystem_info_data_free),
      	(query_filesystem_info_async_thread),
      	(g_file_real_query_filesystem_info_async),
      	(g_file_real_query_filesystem_info_finish):
      	* gfile.h: Implement async version of
      	g_file_query_filesystem_info()
      
      	* 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),
      	(g_volume_monitor_adopt_orphan_mount):
      	* 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
      bfda430e
  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
      47b8809e
  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
      41d1650c
  33. 01 Dec, 2007 1 commit
  34. 30 Nov, 2007 1 commit