1. 18 Jun, 2009 1 commit
  2. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · d97cdbdf
      Johan Dahlin authored
      2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
          * *.[ch]: Include "config.h" instead of <config.h>
          Command used:
          find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
          Rubberstamped by Mitch and Tim
      svn path=/trunk/; revision=20669
  3. 14 Jan, 2008 1 commit
    • Michael Natterer's avatar
      remove unused variable. · 824e2c74
      Michael Natterer authored
      2008-01-14  Michael Natterer  <mitch@imendio.com>
      	* gtk/gtkiconcache.c (find_image_offset): remove unused variable.
      svn path=/trunk/; revision=19367
  4. 03 Dec, 2007 1 commit
    • Matthias Clasen's avatar
      Two optimizations for icon cache lookups. · f9e4618b
      Matthias Clasen authored
      2007-12-03  Matthias Clasen  <mclasen@redhat.com>
              Two optimizations for icon cache lookups.
              * gtk/gtkiconcache.[hc]:
              * gtk/gtkicontheme.c: Remember the directory index for
              subdirectories, instead of running over the directory list
              again and again.
              * gtk/gtkiconcache.c (find_image_offset): Remember the last
              chain and try it first; this helps with the the usage patterns
              in gtkicontheme.c, where the same icon is queried for a lot
              of subdirectories.
      svn path=/trunk/; revision=19099
  5. 14 Sep, 2007 1 commit
  6. 23 May, 2007 1 commit
    • Yevgen Muntyan's avatar
      missing #include <ctype.h>. · 1a534510
      Yevgen Muntyan authored
      2007-05-23  Yevgen Muntyan  <muntyan@tamu.edu>
      	* gtk/gtkprintunixdialog.c: missing #include <ctype.h>.
      	* gtk/gtkhandlebox.c (gtk_handle_box_paint):
      	* gtk/gtkpagesetupunixdialog.c (_gtk_load_custom_papers):
      	* gtk/gtkstatusbar.c (gtk_statusbar_get_context_id):
      	* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path):
      	* gtk/gtktrayicon-x11.c (gtk_tray_icon_send_dock_request):
      	* gtk/gtkpreview.c (gtk_preview_finalize):
      	* gtk/gtknotebook.c (gtk_notebook_set_group_id):
      	* tests/testnotebookdnd.c (window_creation_function):
      	* tests/testiconview.c (do_popup_menu):
      	Fixed some compiler warnings (#440689).
      svn path=/trunk/; revision=17898
  7. 01 May, 2007 2 commits
    • Matthias Clasen's avatar
      Remove debug spew · a5cbbdef
      Matthias Clasen authored
      svn path=/trunk/; revision=17756
    • Matthias Clasen's avatar
      Add an icon cache validator. · 2a801133
      Matthias Clasen authored
      2007-05-01  Matthias Clasen  <mclasen@redhat.com>
              * gtk/gtkiconcachvalidator.[hc]: Add an icon cache validator.
              * gtk/updateiconcache.c: Validate the generated cache before
              moving it in place. Also add a --validate option to validate
              an existing icon cache.
              * gtk/gtkiconcache.c: Validate icon caches before using them.
              * gtk/Makefile.am: Integrate it.
      svn path=/trunk/; revision=17753
  8. 08 Oct, 2006 1 commit
  9. 10 Sep, 2006 1 commit
  10. 31 Mar, 2006 1 commit
    • Matthias Clasen's avatar
      Don't leak the keyfile parser in the error case. · 082d4176
      Matthias Clasen authored
      2006-03-31  Matthias Clasen  <mclasen@redhat.com>
      	* gtk/gtkicontheme.c (load_icon_data): Don't leak the keyfile
      	parser in the error case.
      	* gtk/gtkicontheme.c (load_icon_data, free_unthemed_icon)
      	(icon_data_free, load_themes):
      	* gtk/gtkiconcache.c (_gtk_icon_cache_get_icon_data): Use the slice
      	allocator for GtkIconData and UnthemedIcon structs.
  11. 04 Nov, 2005 1 commit
    • Matthias Clasen's avatar
      Store builtin stock icons in an icon cache, instead of populating a hash · b983d1c6
      Matthias Clasen authored
      2005-11-04  Matthias Clasen  <mclasen@redhat.com>
              Store builtin stock icons in an icon cache, instead of
              populating a hash table with pixbufs at startup, to save both
              memory and startup time.
              * gtk/stock-icons/*: Reorganize the icons in a directory structure
              suitable for gtk-update-icon-cache, and rename them to match the
              stock ids.
              * gtk/gtkiconcache.[hc]: Support non-mmapped icon caches, and
              add _gtk_icon_cache_has_icon_in_directory().
              * gtk/updateiconcache.c: Support a --source <VARIABLE> argument
              to store the contents of the icon cache in a C header.
              * gtk/gtkbuiltincache.h: Generated private header which contains
              the icon cache for the builtin icons.
              * gtk/gtkicontheme.c: Create a GtkIconCache for the builtin
              icons, and use that in addition to the hash table whenever
              builtin icons are searched.
              * gtk/gtkiconfactory.c: Add GTK_ICON_SOURCE_STATIC_ICON_NAME and
              use it for static stock ids.
              (get_default_icons): Don't add the builtin
              icons to the icon theme, just register the stock ids.
              (render_fallback_image): Take the fallback image out of the
              builtin icon cache.
              * gtk/Makefile.am: Remove stock-icons from SUBDIRS and add
              the necessary machinery to rebuild gtkbuiltincache.h.
  12. 29 Aug, 2005 1 commit
  13. 22 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      Add a note regarding icon theme changes. · 97ec1cdf
      Matthias Clasen authored
      2005-08-22  Matthias Clasen  <mclasen@redhat.com>
      	* gtk/gtkicontheme.c (gtk_icon_theme_load_icon): Add a note
      	regarding icon theme changes.
      	* gtk/gtkiconcache.c (_gtk_icon_cache_get_icon): When returning
      	pixbufs which are backed by the mmapped memory of an icon cache,
      	increase the refcount of the icon cache, so that the memory is not
      	munmapped away underneath the pixbuf upon icon theme changes.
      	(#314170, Kjartan Maraas)
  14. 03 Jul, 2005 1 commit
    • Hans Breuer's avatar
      updated <io.h> for open() use G_PI instead of M_PI · 19e9165d
      Hans Breuer authored
      2005-07-03  Hans Breuer  <hans@breuer.org>
      	* **/makefile.msc[.in] : updated
      	* gtk/gtkiconcache.c : <io.h> for open()
      	* gtk/gtkstyle.c : use G_PI instead of M_PI
      	* gdk/win32/gdkcursor-win32.c : implement gdk_cursor_new_from_name()
      	by mapping the lower case win32 api name to the respective cursor.
      	E.g. pass "wait" to get the IDC_WAIT cursor. Also allows to load
      	cursors from named resources in the executable.
      	(gdk_cursor_get_image) : just return NULL for now.
      	* gdk/win32/gdkgeometry-win32.c : implement gdk_window_move_region()
      	by delegation to ScollWindowEx(), untested.
      	* gdk/win32/gdkwindow-win32.c : stub for gdk_window_set_urgency_hint()
  15. 27 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Use GMappedFile. · d4c43a42
      Matthias Clasen authored
      2005-06-27  Matthias Clasen  <mclasen@redhat.com>
      	* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Use
      	* configure.in: Require GLib 2.7.1
  16. 23 Jun, 2005 1 commit
  17. 21 Jun, 2005 1 commit
  18. 09 Apr, 2005 1 commit
  19. 20 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · cca8dd63
      Matthias Clasen authored
      2005-03-20  Matthias Clasen  <mclasen@redhat.com>
      	Make PLT-reduction work with gcc4, and don't include
      	everything in gdkalias.h:
      	* gtk/grk.symbols: Group symbols by header and source file.
      	* gtk/makegtkalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegtkalias.pl -def
      	* gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
      	this file.
      	* gtk/*.c: Include gtkalias.h after the other headers,
      	include gtkaliasdef.c at the bottom.
      	* gtk/*.h: Small cleanups.
  20. 15 Mar, 2005 1 commit
    • Anders Carlsson's avatar
      Update spec. · 3fc42d7a
      Anders Carlsson authored
      2005-03-15  Anders Carlsson  <andersca@imendio.com>
      	* docs/iconcache.txt:
      	Update spec.
      	* gtk/gtkiconcache.c: (find_image_offset),
      	(_gtk_icon_cache_get_icon_flags), (_gtk_icon_cache_add_icons),
      	(_gtk_icon_cache_get_icon), (_gtk_icon_cache_get_icon_data):
      	* gtk/gtkiconcache.h:
      	Update to be able to fetch pixbuf data and icon metadata.
      	* gtk/gtkicontheme.c: (theme_lookup_icon), (gtk_icon_info_free),
      	Use new cache functions.
      	* gtk/updateiconcache.c: (foreach_remove_func), (load_icon_data),
      	(maybe_cache_image_data), (scan_directory), (write_pixdata),
      	(get_image_meta_data_size), (get_image_pixel_data_size),
      	(get_image_data_size), (get_single_node_size), (get_bucket_size),
      	(write_bucket), (main):
      	Update to write pixbuf data as well as information from .icon
  21. 12 Dec, 2004 1 commit
    • Tor Lillqvist's avatar
      gtk/gtkaccelmap.[ch] gtk/gtkfilechooser.[ch] gtk/gtkfilesel.c · f3da1705
      Tor Lillqvist authored
      2004-12-12  Tor Lillqvist  <tml@iki.fi>
      	* gtk/gtkaccelmap.[ch]
      	* gtk/gtkfilechooser.[ch]
      	* gtk/gtkfilesel.c
      	* gtk/gtkfilesystemwin32.c
      	* gtk/gtkiconfactory.[ch]
      	* gtk/gtkicontheme.[ch]
      	* gtk/gtkimage.[ch]
      	* gtk/gtkimmodule.c
      	* gtk/gtkmodules.c
      	* gtk/gtkrc.[ch]
      	* gtk/gtkuimanager.[ch]
      	* gtk/gtkwindow.[ch]
      	* gtk/updateiconcache.c
      	* gtk/gtk.symbols: Use gstdio wrappers. On Windows, convert
      	environment variables referring to pathnames from locale encoding
      	to UTF-8. As in GLib, in order to preserve Windows DLL ABI
      	stability, add binary compatibility versions of functions that
      	take file names as arguments, or return file names. Add a _utf8
      	suffix to the "real" such functions on Windows. The ABI
      	compatibility versions keep the old name.
      	* gtk/Makefile.am: Strip PRIVATE symbols from the GNU import
      	* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Implement
      	file mapping on Win32.
      	* gtk/updateiconcache.c: Don't crash if invoked without
      	argument. Use binary mode when opening file.
      	* modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am: Install
      	gtkrc in correct place, in <datadir>/themes/MS-Windows/gtk-2.0.
  22. 21 Oct, 2004 3 commits
    • Matthias Clasen's avatar
      *** empty log message *** · 92b3cda4
      Matthias Clasen authored
    • Matthias Clasen's avatar
      Implement for cached themes. · a34d841d
      Matthias Clasen authored
      2004-10-21  Matthias Clasen  <mclasen@redhat.com>
      	* gtk/gtkicontheme.c (gtk_icon_theme_has_icon): Implement for
      	cached themes.
      	* gtk/gtkiconcache.h:
      	* gtk/gtkiconcache.c (_gtk_icon_cache_has_icon): New function.
      	* gtk/updateiconcache.c (scan_directory): Don't skip .icon
      	files which are listed before their images.
      	(foreach_remove_func): Instead filter lonely .icon files out
      	* gtk/gtkicontheme.c (theme_dir_get_icon_suffix): Filter out
      	the HAS_ICON_FILE flag.
    • Matthias Clasen's avatar
      Make it compile without mmap() and add some more checks. (#155973, Morten · 1cf454c9
      Matthias Clasen authored
      2004-10-21  Matthias Clasen  <mclasen@redhat.com>
      	* gtk/gtkiconcache.c: Make it compile without mmap() and
      	add some more checks.  (#155973, Morten Welinder)
  23. 19 Oct, 2004 1 commit
    • Matthias Clasen's avatar
      Implement icon theme caching. (#154034, Martijn Vernooij, caching schema · 6fc2b811
      Matthias Clasen authored
      2004-10-19  Matthias Clasen  <mclasen@redhat.com>
      	Implement icon theme caching.  (#154034, Martijn Vernooij,
      	caching schema proposed by Owen Taylor, initial implementation
      	by Anders Carlsson)
      	* gtk/gtkdebug.h:
      	* gtk/gtkmain.c: Add a "icontheme" debug flag.
      	* gtk/Makefile.am (gtk_c_sources): Add gtkiconcache.c
      	(gtk_private_h_sources): Add gtkiconcache.h
      	(bin_PROGRAMS): Add gtk-update-icon-cache
      	* gtk/gtkicontheme.c: Use icon caches if they are available.
      	Currently, GTK+ uses the cache to get information about the
      	available sizes, image file formats and .icon files. The
      	actual image data, and the .icon file contents are not
      	cached yet.
      	* gtk/updateiconcache.c: A cmdline utility for generating
      	icon cache files.
      	* gtk/gtkiconcache.h:
      	* gtk/gtkiconcache.c: The glue code to mmap an icon cache
      	file and manage the information it contains.