1. 29 Feb, 2016 1 commit
    • Matthias Clasen's avatar
      Don't use g_print for debug output · 2ee7fb18
      Matthias Clasen authored
      The g_print documentation explicitly says not to do this, since
      g_print is meant to be redirected by applications. Instead use
      g_message for logging that can be triggered via GTK_DEBUG.
  2. 28 Feb, 2016 1 commit
  3. 14 Jan, 2016 2 commits
  4. 22 Oct, 2015 1 commit
  5. 09 Sep, 2015 1 commit
    • Matthias Clasen's avatar
      Clean up debug features · 3526b08e
      Matthias Clasen authored
      Introduce a GTK_DEBUG_CHECK() macro and use it to check for
      GTK_DEBUG flags everywhere. Also guard all such places by
  6. 27 Oct, 2014 1 commit
  7. 20 Jun, 2014 2 commits
  8. 28 Nov, 2013 1 commit
  9. 19 Jun, 2013 1 commit
  10. 27 Feb, 2012 1 commit
  11. 26 Jan, 2012 1 commit
  12. 12 Oct, 2011 1 commit
    • Chun-wei Fan's avatar
      Bug 660730: Win32: Only use _fstat32 if available · 5a13e08f
      Chun-wei Fan authored
      _fstat32 is only introduced with msvcrt80.dll (i.e. Visual C++ 2005), in
      which using this function will break compilation with MinGW, which links
      against msvcrt.dll.  The msvcrt.lib in the Windows DDK which links to
      a later incarnation of the msvcrt.dll in later Windows systems may have
      this symbol defined, but that needs to be checked upon to be sure.
      Thanks to Dieter Verfaillie for pointing out this problem.
  13. 03 Oct, 2011 2 commits
    • Benjamin Otte's avatar
      iconcache: Fix gcc warning · 78ddecab
      Benjamin Otte authored
    • Chun-wei Fan's avatar
      Bug 660730: Use GStatBuf for portability · eb8c2dfa
      Chun-wei Fan authored
      Thanks to Kean Johnston for pointing this out.
      There are a few places in GTK that use "struct stat",
      and then g_stat(), rather than using GStatBuf.This breaks things on
      Windows. Since the size of struct stat can vary depending on other
      flags specified, this has the potential to cause overwrites and is
      trivial to fix.
      Based on patch submitted by Kean Johnston
  14. 08 Sep, 2010 1 commit
  15. 10 Jul, 2010 1 commit
  16. 18 Jun, 2009 1 commit
  17. 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
  18. 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
  19. 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
  20. 14 Sep, 2007 1 commit
  21. 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
  22. 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
  23. 08 Oct, 2006 1 commit
  24. 10 Sep, 2006 1 commit
  25. 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.
  26. 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.
  27. 29 Aug, 2005 1 commit
  28. 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)
  29. 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()
  30. 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
  31. 23 Jun, 2005 1 commit
  32. 21 Jun, 2005 1 commit
  33. 09 Apr, 2005 1 commit
  34. 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.
  35. 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
  36. 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.