1. 14 Jan, 2008 1 commit
    • Michael Natterer's avatar
      add cast to fix const warning. · 7a658c13
      Michael Natterer authored
      2008-01-14  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkrc.c (_gtk_rc_style_unset_rc_property): add cast to fix
      	const warning.
      
      	(gtk_rc_parse_any): change variables to const and introduce
      	another local variable to fix const warnings.
      
      
      svn path=/trunk/; revision=19371
      7a658c13
  2. 30 Nov, 2007 1 commit
  3. 25 Nov, 2007 1 commit
    • Matthias Clasen's avatar
      Require gtk-doc 1.8 · 4896e24b
      Matthias Clasen authored
      2007-11-25  Matthias Clasen  <mclasen@redhat.com>
      
              * configure.in: Require gtk-doc 1.8
      
              * */*.c: Use gtk-doc abbreviations for examples in docs.
      
      
      svn path=/trunk/; revision=19041
      4896e24b
  4. 11 Jun, 2007 1 commit
    • Matthias Clasen's avatar
      Accept class names starting with lowercase letters for style property · d090fe42
      Matthias Clasen authored
      2007-06-10  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkrc.c (gtk_rc_parse_style): Accept class names starting
              with lowercase letters for style property assignments, since
              GType accepts these too, and gtkmm uses such class names.  (#343012,
              Murray Cumming, Johannes Schmid)
      
      
      svn path=/trunk/; revision=18101
      d090fe42
  5. 08 Jun, 2007 2 commits
    • Carlos Garnacho's avatar
      initialize rc_priv in the else branch too. (#445539) · 705d6545
      Carlos Garnacho authored
      2007-06-09  Carlos Garnacho  <carlos@imendio.com>
      
              * gtk/gtkrc.c (gtk_rc_parse_engine): initialize rc_priv in the else
              branch too. (#445539)
      
      
      svn path=/trunk/; revision=18084
      705d6545
    • Matthias Clasen's avatar
      Make it possible for theme engines to support symbolic colors. (#426192, · 3c49e2ef
      Matthias Clasen authored
      2007-06-08  Matthias Clasen  <mclasen@redhat.com>
      
              Make it possible for theme engines to support symbolic 
              colors.  (#426192, Andrea Cimitan, patch by Olivier Samyn)
      
              * gtk/gtk.symbols:
              * gtk/gtkrc.h:
              * gtk/gtkrc.c (gtk_rc_parse_color_full): Export this function
      
              * gtk/gtkrc.c (gtk_rc_parse_engine): Copy color hashes
              to new style before parsing engine section.
      
      svn path=/trunk/; revision=18081
      3c49e2ef
  6. 06 Jun, 2007 1 commit
    • Yevgen Muntyan's avatar
      new method, gtk_widget_modify_cursor() (#89314). · 2cbaeadf
      Yevgen Muntyan authored
      2007-06-06  Yevgen Muntyan  <muntyan@tamu.edu>
      
      	* gtk/gtkwidget.c:
      	* gtk/gtkwidget.h: new method, gtk_widget_modify_cursor() (#89314).
      
      	* gtkrc.c:
      	* gtkrc.h: new functions _gtk_rc_style_set_rc_property() and
      	_gtk_rc_style_unset_rc_property().
      
      	* gtk/gtk.symbols: added gtk_widget_modify_cursor.
      
      	* tests/testtext.c (do_cursor_visible_changed):
      	* tests/testgtk.c (create_styles): test it.
      
      
      svn path=/trunk/; revision=18066
      2cbaeadf
  7. 26 Mar, 2007 1 commit
  8. 22 Mar, 2007 1 commit
    • Matthias Clasen's avatar
      Freeze property notification. Handle the gtk-color-scheme xsetting being · 229999d8
      Matthias Clasen authored
      2007-03-22  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtksettings.c (merge_color_scheme): Freeze property
              notification.
              * gtk/gtksettings.c (_gtk_settings_handle_event): Handle
              the gtk-color-scheme xsetting being unset.
      
              * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Handle
              recursion locally.
      
      
      
      svn path=/trunk/; revision=17553
      229999d8
  9. 09 Mar, 2007 1 commit
  10. 28 Feb, 2007 1 commit
  11. 06 Feb, 2007 1 commit
    • Kristian Rietveld's avatar
      New tooltips API. · 0ef946ed
      Kristian Rietveld authored
      2007-02-06  Kristian Rietveld  <kris@imendio.com>
      
      	New tooltips API.
      
      	* gtk/Makefile.am
      	* gtk/gtk.h
      	* gtk/gtk.symbols: build system foo.
      
      	* gtk/gtkmain.c (gtk_main_do_event): call tooltip event handler
      	hook for appropriate events.
      
      	* gtk/gtkmarshalers.list: add BOOLEAN:INT,INT,BOOLEAN,OBJECT.
      
      	* gtk/gtkrc.c: add style for gtk-tooltip.
      
      	* gtk/gtksettings.c (gtk_settings_class_init): make the
      	different tooltip timeouts configurable.
      
      	* gtk/gtkwidget.[ch]: add new properties, signals, make sure
      	tooltips are hidden on unmap, destroy, update window event
      	mask on realize, hook into focus change and show help
      	handlers.
      
      	* gtk/gtkwindow.h: move GtkWindow typdef to gtkwidget.h ...
      
      	* gtk/gtktooltip.[ch]: new files.
      
      	* tests/Makefile.am
      	* tests/testtooltips.c: add test application.
      
      
      svn path=/trunk/; revision=17264
      0ef946ed
  12. 07 Dec, 2006 1 commit
  13. 13 Nov, 2006 1 commit
  14. 05 Oct, 2006 1 commit
    • Michael Natterer's avatar
      added new scanner token "unbind" which gets rid of a key binding (in fact, · a3b67535
      Michael Natterer authored
      2006-10-05  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkrc.[ch]: added new scanner token "unbind" which gets
      	rid of a key binding (in fact, it only lets it appear unbound).
      
      	* gtk/gtkbindings.[ch] (struct GtkBindingEntry): added
      	"guint marks_unbound : 1"
      
      	(gtk_binding_entry_skip): new API which marks the entry as unbound.
      
      	Changed code so it returns FALSE when "marks_unbound == TRUE" is
      	encountered while activating bindings, effectively letting the
      	binding appear unbound (regardless of still existing bindings in
      	lower binding priority levels). Fixes bug #358329.
      
      	(gtk_binding_entry_add)
      	(gtk_binding_entry_clear)
      	(gtk_binding_entry_add_signall)
      	(gtk_binding_parse_binding): deprected these functions.
      
      	(_gtk_binding_parse_binding)
      	(_gtk_binding_entry_add_signall): new internal API.
      
      	* gtk/gtk.symbols: changed accordingly.
      a3b67535
  15. 04 Sep, 2006 1 commit
  16. 03 Aug, 2006 1 commit
    • Michael Natterer's avatar
      reset scanner config to default values while checking if an · edab8256
      Michael Natterer authored
      2006-08-03  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkrc.c (gtk_rc_parse_assignment): reset scanner config to
      	default values while checking if an expression(foobar) follows,
      	because if no expression follows the scanner's "next token" must
      	be usable for the caller of this function (fixes bug #349552).
      edab8256
  17. 21 Jul, 2006 3 commits
    • Matthias Clasen's avatar
      New function to destroy an rc context. · fee9accb
      Matthias Clasen authored
      2006-07-21  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkrc.h:
      	* gtk/gtkrc.c (_gtk_rc_context_destroy): New function to
      	destroy an rc context.
      
      	* gtk/gtksettings.c (gtk_settings_finalize): Destroy the rc context.
      	(gtk_settings_get_for_screen): Unref the settings when the screen
      	goes away. (#348096, Chris Wilson)
      fee9accb
    • Matthias Clasen's avatar
      Replace gtk_rc_style_ref/unref by g_object_ref/unref. · 465daa91
      Matthias Clasen authored
      2006-07-21  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkstyle.c:
      	* gtk/gtkrc.c:
      	* gtk/gtkwidget.c: Replace gtk_rc_style_ref/unref by
      	g_object_ref/unref.
      465daa91
    • Michael Natterer's avatar
      Enable symbolic colors and color expressions in style properties. Fixes · c095ee26
      Michael Natterer authored
      2006-07-21  Michael Natterer  <mitch@imendio.com>
      
      	Enable symbolic colors and color expressions in style
      	properties. Fixes bug #346751.
      
      	* gtk/gtkrc.c (rc_parse_token_or_compound): add GtkRcStyle
      	parameter and replace symbolic colors by color constants.
      
      	(gtk_rc_parse_assignment): likewise. Also support parsing of
      	expressions of the form identifier(compound).
      
      	(gtk_rc_parse_style): pass the GtkRcStyle to
      	gtk_rc_parse_assignment().
      
      	(gtk_rc_parse_statement): pass NULL since we don't have a
      	GtkRcStyle here.
      c095ee26
  18. 07 Jul, 2006 1 commit
  19. 06 Jul, 2006 2 commits
  20. 19 Jun, 2006 1 commit
    • Matthias Clasen's avatar
      Make transparent tray icons work. (#320034, based on a patch by Dan · 219aa66d
      Matthias Clasen authored
      2006-06-19  Matthias Clasen  <mclasen@redhat.com>
      
      	Make transparent tray icons work.  (#320034, based on a
      	patch by Dan Winship)
      
      	* gtk/gtktrayicon-x11.c (gtk_tray_icon_init): Make trayicons
      	app-paintable and non-double buffered.
      
      	* gtk/gtkrc.c (_gtk_rc_init): Give tray icons a parent-relative
      	background in the default style.
      219aa66d
  21. 14 May, 2006 1 commit
  22. 02 May, 2006 1 commit
  23. 30 Apr, 2006 1 commit
    • Matthias Clasen's avatar
      Fix problems with setting symbolic colors from rc files. (#338345, · a5f63de1
      Matthias Clasen authored
      2006-04-30  Matthias Clasen  <mclasen@localhost.localdomain>
      
      	Fix problems with setting symbolic colors from rc files.
      	(#338345, Benjamin Berg)
      
      	* gtk/gtkrc.c (gtk_rc_settings_changed, gtk_rc_font_name_changed)
      	(gtk_rc_color_hash_changed, gtk_rc_reparse_all_for_settings): Don't
      	freeze notification for settings changes while parsing; instead
      	manually avoid recursion, and update the color hashes.
      a5f63de1
  24. 18 Apr, 2006 1 commit
  25. 03 Apr, 2006 2 commits
  26. 23 Mar, 2006 1 commit
    • Matthias Clasen's avatar
      Support subclasses in RC files. (#142417, Todd Berman, patch based on a · ac879843
      Matthias Clasen authored
      2006-03-23  Matthias Clasen  <mclasen@redhat.com>
      
      	Support subclasses in RC files.  (#142417, Todd Berman, patch
      	based on a patch by Benjamin Berg)
      
      	* gtk/gtkrc.h:
      	* gtk/gtkrc.c: Support <classname> elements in widget_class paths
      	in rc files which match any classes derived from named class.
      
      	(_gtk_rc_init): Use the new syntax in the default rc string.
      
      	* gtk/gtkbindings.c: Support the new syntax for bindings too.
      
      	* tests/testrc.c: Tests for widget_class path matching
      ac879843
  27. 16 Dec, 2005 1 commit
    • Matthias Clasen's avatar
      Rework the way the color scheme setting is inherited. Now the overriding · bc190f2a
      Matthias Clasen authored
      2005-12-16  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtksettings.[hc]: Rework the way the color scheme setting
      	is inherited. Now the overriding is done on a per-color basis,
      	rather than for the setting as a whole. This has the effect
      	that themes can declare defaults for all the symbolic colors they
      	use by specifying a value for the gtk-color-scheme setting in
      	their rc file, while still allowing the XSetting to override
      	"standard" symbolic colors. The hash table is now available
      	through the color-hash property.
      
      	* gtk/gtkrc.c: Use the new color-hash property.
      bc190f2a
  28. 12 Dec, 2005 1 commit
    • Matthias Clasen's avatar
      Make the gtk-color-scheme setting work. · 128bc9f3
      Matthias Clasen authored
      2005-12-12  Matthias Clasen  <mclasen@redhat.com>
      
      	Make the gtk-color-scheme setting work.
      
      	* gtk/gtksettings.h:
      	* gtk/gtksettings.c (_gtk_settings_get_color_hash): Add a getter
      	that takes care of initializing the color hash if it is not
      	already there.
      
      	* gtk/gtkrc.c (gtk_rc_color_scheme_changed, gtk_rc_context_get):
      	And use it here.
      128bc9f3
  29. 23 Nov, 2005 2 commits
    • Michael Natterer's avatar
      don't leak all toplevel windows on other screens (correctly remove all · a2f19568
      Michael Natterer authored
      2005-11-23  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkrc.c (gtk_rc_reset_widgets): don't leak all toplevel
      	windows on other screens (correctly remove all temporary
      	references).
      a2f19568
    • Michael Natterer's avatar
      Added symbolic themable colors. Patch is a merged version of proposals · de3155a4
      Michael Natterer authored
      2005-11-23  Michael Natterer  <mitch@imendio.com>
      
      	Added symbolic themable colors. Patch is a merged version of
      	proposals from Matthias and maemo-gtk. Fixes bug #114355.
      
      	* configure.in: require glib >= 2.9.1 for refcountable hashtables.
      
      	* gtk/gtksettings.c: added property "color-scheme" which is a
      	string defining colors like "foreground:black\nbackground:grey".
      	Automatically provide a name->GdkColor hash table mapping for the
      	color scheme.
      
      	* gtk/gtkrc.[ch]: added list of color hashes that works like the
      	list of icon factories. Append the color scheme hash from
      	GtkSettings if it exists. Extended gtkrc syntax to allow defining
      	and referencing of logical colors. Also allow to modulate colors
      	in gtkrc by using arbitrary expressions of mix(), shade(),
      	lighter() and darker(). Added internal function
      	_gtk_rc_style_get_color_hashes().
      
      	* gtk/gtkstyle.[ch]: keep a private list of color hashes around.
      	Get the list from _gtk_rc_style_get_color_hashes(). Export
      	internal function _gtk_style_shade() (used by above color
      	expressions). Added public API gtk_style_lookup_color() which
      	looks up a logical color by name.
      
      	* gtk/gtk.symbols: add gtk_style_lookup_color
      
      	* tests/testgtkrc: use symbolic colors for making
      	the scrollbars red.
      de3155a4
  30. 04 Nov, 2005 1 commit
  31. 05 Oct, 2005 1 commit
  32. 04 Oct, 2005 1 commit
  33. 03 Oct, 2005 1 commit
  34. 01 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Intern some more strings. · 94eec042
      Matthias Clasen authored
      2005-09-01  Matthias Clasen  <mclasen@redhat.com>
      
              * gdk/*.c: Intern some more strings.
              * gtk/gtkintl.h:
              * gtk/*.c: Define an I_() macro and use it instead of the
              bulky g_intern_static_string().
      94eec042