1. 02 Dec, 2003 1 commit
  2. 02 Jul, 2003 1 commit
    • Owen Taylor's avatar
      Implement a loader for named themed icon based on from gnome-desktop · a72aed4e
      Owen Taylor authored
      Wed Jul  2 18:00:56 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkicontheme.[ch]: Implement a loader for
              named themed icon based on from gnome-desktop library
              by Alex Larsson.
      
              * gtk/gtkiconthemeparser.[ch]: .ini file parsing code
              from gnome-desktop.
      
              * gtk/gtkiconfactory.[ch]: Add
              gtk_icon_source_set/get_icon_name() to allow stock icons
              to be based off of named theme icons.
      
              * gtk/gtkiconfactory.c: Rework sources so that the source
              is *either* a pixbuf, or a filename, or an icon name,
              instead of the pixbuf/filename mix it was before. Put a
              workaround for get_pixbuf() so that it can return the
              filename pixbuf, e.g, for render_icon().
      
              * gtk/gtkiconfactory.c: Make the default setup use
              themed icons, and add builtin icons to the default
              icon theme for all the standard pixbufs, so we
              don't rely on actually having an icon theme on disk.
      
              * gtk/gtkrc.c: Add support for @"icon-name" to specify
              a themed icon for a stock icon source.
      
              * tests/Makefile.am test/testicontheme.c: Add a test
              program from gnome-desktop.
      
              * gdk/x11/gdkevents-x11.c gtk/gtksettings.c: Add
              Net/IconThemeName / gtk-icon-theme-name setting.
      
              * gtk/gtkiconfactory.c (ensure_cache_up_to_date): Actually
              update the icon cache serial so we don't continually
      
              * gtk/gtkwidget.c: Fix a couple of references in doc comments
              to ::direction_set that should have been to ::direction-changed
      a72aed4e
  3. 01 Feb, 2003 1 commit
  4. 07 Oct, 2002 1 commit
    • Owen Taylor's avatar
      - Replace GdkPointerHooks with a multihead-safe GdkDisplayPointerHooks, · 253458ec
      Owen Taylor authored
      Mon Oct  7 15:10:00 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdisplay.[ch] gdk/gdkinternals.h
              gdk/gdkwindow.[ch] gdk/linux-fb/gdkwindow-fb.c
              gdk/win32/gdkwindow-win32.c gdk/x11/gdkwindow-x11.c:
      
              - Replace GdkPointerHooks with a multihead-safe
                GdkDisplayPointerHooks, leave GdkPointerHooks
                around for singlehead.
              - Add gdk_display_get_pointer() to get the pointer
                location with the screen it is on.
      
              * gdk/gdk.def gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch]:
              Change gdk_screen_get_window_at_pointer() to
              gdk_display_get_window_at_pointer().
      
              * gtk/gtktreeview.c demos/gtk-demo/changedisplay.c
              tests/testgtk.c: Use gdk_display_get_window_at_pointer(),
              not gdk_screen_get_window_at_pointer().
      
              * gtk/gtkcolorsel.c: Fix grabbing color to be multihead
              safe.
      
              * gtk/gtkwidget.c: Allow gtk_widget_push_colormap (NULL).
              since it is useful for writing code that doesn't
              know the dcurrent state but needs a clean colormap.
      
              * gtk/gtkrc.c: When loading the settings for a particular
              screen, only reset toplevels on that screen.
      
              * gtk/gtkiconfactory.h: Fix #ifdef GTK_MULTIHEAD_SAFE
              that should have been #ifndef GTK_MULTIHEAD_SAFE.
      253458ec
  5. 24 Sep, 2002 1 commit
    • Owen Taylor's avatar
      Make icon sizes configurable (#70648, slightly based on a patch from Bill · 15896b96
      Owen Taylor authored
      Tue Sep 24 16:40:14 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Make icon sizes configurable (#70648, slightly based
      	on a patch from Bill Haneman, Brian Cameron)
      
      	* gtk/gtkiconfactory.[ch]: Add
      	gtk_icon_size_lookup_for_settings().
      
      	* gtk/gtksettings.c: Add gtk-icon-sizes XSETTING
      
      	* gtk/gtkiconfactory.c: Make icon sizes per-GtkSettings.
      
      	* gtk/gtkstyle.c: Use gtk_icon_size_lookup_for_settings()
      
      	* gtk/gtkrc.[ch]: Privately export _gtk_rc_reset_styles()
      	to force all the widgets to recompute their appearance.
      15896b96
  6. 02 Mar, 2002 1 commit
    • Owen Taylor's avatar
      Switch style of stamp file usage. · f832e348
      Owen Taylor authored
      Sat Mar  2 13:26:58 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/Makefile.am: Switch style of stamp file usage.
      
              * gtk/Makefile.am gtk/typeutils.[ch]: Switch all the exported
              enumeration/fags TYPE variables over to macros for get_type() functions,
              for lazy definition and to get rid of expensive relocations.
      
              * gtk/gtkiconfactory.[ch] gtk/gtkselection.[ch] gtk/gtkstyle.[ch]
              gtk/gtktextiter.[ch] gtk/gtktexttag.[ch] gtk/gtktreemodel.[ch]
              gtk/gtktypeutils.[ch] gtk/gtkwidget.[ch]: Switch boxed type
              definitions over manually coded get_type() functions.
      
              * gtk/gtk.def: Updates for above
      
              * gtk/{genmarshal.pl,makeenums.awk,makeenums.h,maketypes.awk}:
              Remove from CVS, no longer used.
      
              * configure.in: Remove checks for awk.
      f832e348
  7. 23 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Massive padding addition to class structures. · e5d1ea8c
      Owen Taylor authored
      Sat Feb 23 11:54:12 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/*.h gdk/*.h: Massive padding addition to class structures.
      
              * gtk/gtktextmark.h: Fix a FIXME about G_CONST_RETURN.
      e5d1ea8c
  8. 25 May, 2001 1 commit
    • Havoc Pennington's avatar
      get sizes an icon set can render without falling back to missing image · 87684f95
      Havoc Pennington authored
      2001-05-25  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkiconfactory.c (gtk_icon_set_get_sizes): get sizes an icon
      	set can render without falling back to missing image icon
      
      	* gtk/gtktextview.c (gtk_text_view_size_request): request full
      	size of text, instead of random values
      
      	* gtk/gtktreeview.c (gtk_tree_view_size_request): request full
      	size of tree view, instead of random values
      
      	* gtk/gtkiconfactory.c (gtk_icon_set_render_icon): render fallback
      	image in an appropriate size
      
              * gtk/gtkstock.h: Rename the stock items including _BUTTON_,
      	etc. not to include that. i.e. s/GTK_STOCK_BUTTON_OK/GTK_STOCK_OK/
      
              Throughout: fix GTK_STOCK_BUTTON_ instances
      
      	* gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
      	gtk/gtkiconfactory.c, gtk/stock-icons/Makefile.am:
      	Add a bunch of new stock items/icons
      
      	* gtk/gtktreeview.c (gtk_tree_view_insert_column_with_data_func):
      	new function, convenience for inserting columns with a data func
      
      	* gtk/gtkiconfactory.c: keep a list of all existing icon factories
      	(_gtk_icon_factory_list_ids): use list of all factories to
      	generate a list of all known IDs
      
      	* gtk/gtkstock.c (gtk_stock_list_ids): replace
      	gtk_stock_list_items() with a function that returns all IDs known
      	including those for GtkIconFactory.
      87684f95
  9. 19 Mar, 2001 1 commit
    • Havoc Pennington's avatar
      Make GtkIconSource an opaque datatype, and add a bunch of accessor · 73e9d113
      Havoc Pennington authored
      2001-03-19  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkiconfactory.c: Make GtkIconSource an opaque datatype, and
      	add a bunch of accessor functions. This is because we have
      	reasonable expectations of extending what fields it contains in
      	the future.
      
      	* gtk/gtkstyle.c (gtk_default_render_icon): adapt to icon source
      	changes
      
      	* gtk/gtkrc.c (gtk_rc_parse_icon_source): fix to use new
      	GtkIconSource
      73e9d113
  10. 12 Mar, 2001 1 commit
  11. 20 Feb, 2001 1 commit
  12. 04 Oct, 2000 1 commit
    • Havoc Pennington's avatar
      Fix copyrights · 502e5a88
      Havoc Pennington authored
      2000-10-04  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkstock.h, gtk/gtkstock.c, gtk/gtkiconfactory.h,
      	gtk/gtkiconfactory.c: Fix copyrights
      
      	* demos/testpixbuf.c: add inline pixbuf test
      502e5a88
  13. 26 Sep, 2000 1 commit
    • Havoc Pennington's avatar
      Move more text widget headers into the private header list · e8597130
      Havoc Pennington authored
      2000-09-26  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/Makefile.am (gtk_private_h_sources): Move more text widget
      	headers	into the private header list
      
      	* Makefile.am (pkgconfig_DATA): install pkg-config files
      
      	* configure.in: add pkg-config files
      
      	* gdk-2.0.pc.in, gdk-pixbuf.pc.in, gtk+-2.0.pc.in: pkg-config files
      
      	* gtk/gtkwindow.c (gtk_window_read_rcfiles): Invalidate
      	outstanding icon caches on theme change.
      
      	* gtk/gtkiconfactory.h, gtk/gtkiconfactory.c: New icon system. Three
      	important types:
      
      	(GtkIconSource): Specification for creating a pixbuf
      	appropriate for a direction/state/size triplet from
      	a source pixbuf or filename
      
      	(GtkIconSet): List of GtkIconSource objects that are used to
      	create the "same" icon (e.g. an OK button icon), and cache for
      	rendered icons
      
      	(GtkIconFactory): Hash from stock ID to GtkIconSet; used to look
      	up the icon set for a given stock ID.  GTK maintains a stack of
      	GtkIconFactory to search, and applications or libraries can add
      	additional icon factories on top of the stack
      
              * gtk/gtkrc.h, gtk/gtkrc.c: When loading an RcStyle, parse
      	the set of GtkIconSource specified for a given stock ID into
      	a GtkIconSet, and put the GtkIconSet into a GtkIconFactory for the
      	RcStyle, under the specified stock ID.
      
      	* gtk/gtkstyle.h, gtk/gtkstyle.c: Add a virtual function
      	render_icon used to derive a GdkPixbuf from a GtkIconSource.
      	This allows people to theme how prelight, insensitive, etc. are
      	done.
      
      	(gtk_style_lookup_icon_set): Look up a stock ID in the list of
      	icon factories for a style, and return the resulting
      	icon set if any.
      
      	(gtk_style_render_icon): Render an icon using the render_icon
      	method in the GtkStyleClass.
      
      	* gtk/gtkwidget.h, gtk/gtkwidget.c (gtk_widget_render_icon):
      	Use the style for a given widget to look up a stock ID, get the
      	icon set, and render an icon using the render_icon method
      	of the style
      
      	* gtk/gtkstock.h, gtk/gtkstock.c: Header with the GtkStockItem type
      	(contains information about a stock item), the built-in stock item
      	IDs, and functions to add/lookup stock items.
      
      	* gtk/stock-icons/*: Stock icons that come with GTK
      
      	* gtk/gtkbutton.h, gtk/gtkbutton.c (gtk_button_new_stock): Returns
      	a button based on a GtkStockItem
      	(gtk_button_new_accel): Takes a uline string and accel group, and
      	installs the accelerator.
      
      	* gtk/gtkimage.h, gtk/gtkimage.c: Make this into a generic
      	image-display widget.
      e8597130