1. 28 Nov, 2005 5 commits
    • Matthias Clasen's avatar
      Correctly handle the cell list and indices into it. (#321856) · 4edf06d0
      Matthias Clasen authored
      2005-11-28  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkiconview.c (update_text_cell, update_pixbuf_cell): Correctly
      	handle the cell list and indices into it.  (#321856)
      4edf06d0
    • Matthias Clasen's avatar
      Set timer_tag to 0 when the timeout is done. (#322291, Jean-Yves Lefort) · 6be42231
      Matthias Clasen authored
      2005-11-28  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktooltips.c (gtk_tooltips_timeout): Set timer_tag to 0 when
      	the timeout is done.  (#322291, Jean-Yves Lefort)
      6be42231
    • Matthias Clasen's avatar
      Make F2 work for renaming bookmarks. (#320822, Jaap A. Haitsma, patch by · 9228dcee
      Matthias Clasen authored
      
      2005-11-28  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkfilechooserdefault.c (shortcuts_key_press_event_cb): Make
      	F2 work for renaming bookmarks.  (#320822, Jaap A. Haitsma, patch
      	by Paolo Borelli)
      9228dcee
    • Tor Lillqvist's avatar
      Implement the conditional use of FlashWindowEx() properly for MSVC · 2aadb2df
      Tor Lillqvist authored
      2005-11-28  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_urgency_hint):
      	Implement the conditional use of FlashWindowEx() properly for MSVC
      	compilations. The code was confusingly assuming that if compiled
      	with a "new" compiler, it will only be run on "new" Windows
      	versions. We want it to run on "old" versions, too, even if
      	compiled with a "new" compiler. There are two orthogonal issues:
      	whether the compiler defines the necessary API in its headers, and
      	whether it is present at run-time. (#318077)
      2aadb2df
    • Tor Lillqvist's avatar
      Use GetLocaleInfo() on Windows to get the localized weekday and month · 954deb7b
      Tor Lillqvist authored
      2005-11-28  Tor Lillqvist  <tml@novell.com>
      
      	* gtk/gtkcalendar.c (gtk_calendar_init): Use GetLocaleInfo() on
      	Windows to get the localized weekday and month names. strftime()
      	in the Microsoft C library returns strings in the default codepage
      	for the locale of the process, not the system codepage. Thus
      	g_locale_to_utf8() isn't useable on the return value from
      	strftime(). (#322603)
      954deb7b
  2. 27 Nov, 2005 5 commits
    • Matthias Clasen's avatar
      Fix an example. (#322493, Elie De Brauwer) · d3a05fe0
      Matthias Clasen authored
      2005-11-27  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkmessagedialog.c (gtk_message_dialog_new_with_markup):
      	Fix an example.  (#322493, Elie De Brauwer)
      d3a05fe0
    • Matthias Clasen's avatar
      Fix two memory handling problems in GtkTreeView: (#322350, Søren · 7014ef00
      Matthias Clasen authored
      2005-11-27  Matthias Clasen  <mclasen@redhat.com>
      
      	Fix two memory handling problems in GtkTreeView: (#322350,
      	Søren Sandmann)
      
      	* gtk/gtktreeview.c (gtk_tree_view_destroy)
      	(gtk_tree_view_set_model): Remove all references to nodes in
      	the old model.
      	(gtk_tree_view_real_collapse_row): Unmark expanded_collapsed_node
      	before removing the children.
      7014ef00
    • Matthias Clasen's avatar
      Don't leak a PangoLayout here. (#322505, Paolo Borelli) · 66627293
      Matthias Clasen authored
      2005-11-27  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkcolorbutton.c (gtk_color_button_init): Don't leak a
      	PangoLayout here.  (#322505, Paolo Borelli)
      66627293
    • Tor Lillqvist's avatar
      Once again rework Win32 window decoration code. Doesn't break #104514. The · 3ff34d06
      Tor Lillqvist authored
      2005-11-27  Tor Lillqvist  <tml@novell.com>
      
      	Once again rework Win32 window decoration code. Doesn't break
      	#104514. The dialogs in gtk-demo now have the same decorations and
      	behaviour as on X11. Tried to fix #322516 but it seems very hard
      	to make the trivial sample program there behave as expected. OTOH,
      	simply moving the gtk_window_decorate() call in the #322516 sample
      	program after the call to gtk_widget_show() helps...
      
      	* gdk/win32/gdkwindow-win32.c (set_or_clear_style_bits): Revert to
      	the correct semantics. Each call to gdk_window_set_decorations()
      	which calls this function is supposed to affect all decorations.
      
      	(decorate_based_on_hints): New function, looks at both geometry
      	hints and type hint and sets window decorations based on
      	that. Consolidate code from gdk_window_set_geometry_hints() and
      	gdk_window_set_type_hint() here.
      
      	(gdk_window_set_geometry_hints, gdk_window_set_type_hint): Call
      	decorate_based_on_hints().
      3ff34d06
    • Tor Lillqvist's avatar
      Revert to the correct semantics. (#322516) · 57514934
      Tor Lillqvist authored
      2005-11-27  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkwindow-win32.c (set_or_clear_style_bits): Revert to
      	the correct semantics. (#322516)
      	(gdk_window_set_geometry_hints): Adjust call correspondingly.
      57514934
  3. 25 Nov, 2005 1 commit
  4. 24 Nov, 2005 1 commit
    • Michael Natterer's avatar
      changed two private guint that used to hold signal handler IDs to two · ff7a0922
      Michael Natterer authored
      2005-11-24  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtktoolbar.h (struct _GtkToolbar): changed two private guint
      	that used to hold signal handler IDs to two guint of padding.
      
      	* gtk/gtktoolbar.c (struct _GtkToolbarPrivate): added them as
      	gulong here.
      
      	(gtk_toolbar_screen_changed): changed accordingly.
      ff7a0922
  5. 23 Nov, 2005 7 commits
    • Tim Janik's avatar
      deprecated floating/sink API and implemented it in terms of the GObject · fbb2e3f4
      Tim Janik authored
      Wed Nov 23 18:55:47 2005  Tim Janik  <timj@imendio.com>
      
              * gtk/gtkobject.[hc]: deprecated floating/sink API and implemented it
              in terms of the GObject floating/sink API.
      
              * gtk/gtkaboutdialog.c:
              * gtk/gtkaction.c:
              * gtk/gtkcellview.c:
              * gtk/gtkclist.c:
              * gtk/gtkcolorsel.c:
              * gtk/gtkcombobox.c:
              * gtk/gtkfilechooserdefault.c:
              * gtk/gtkiconview.c:
              * gtk/gtkinvisible.c:
              * gtk/gtkitemfactory.c:
              * gtk/gtklayout.c:
              * gtk/gtkmenu.c:
              * gtk/gtkmenutoolbutton.c:
              * gtk/gtknotebook.c:
              * gtk/gtkprogress.c:
              * gtk/gtkrange.c:
              * gtk/gtkspinbutton.c:
              * gtk/gtkstatusicon.c:
              * gtk/gtktext.c:
              * gtk/gtktextview.c:
              * gtk/gtktoolbar.c:
              * gtk/gtktoolbutton.c:
              * gtk/gtktoolitem.c:
              * gtk/gtktreeitem.c:
              * gtk/gtktreeview.c:
              * gtk/gtktreeviewcolumn.c:
              * gtk/gtkuimanager.c:
              * gtk/gtkviewport.c:
              * gtk/gtkwidget.c:
              * gtk/gtkwindow.c:
              ported to use GObject's g_object_ref_sink().
      
              * gtk/gtkcolorsel.c:
              * gtk/gtkfilechooserdefault.c:
              * gtk/gtkaboutdialog.c:
              fixed compiler warnings.
      fbb2e3f4
    • Matthias Clasen's avatar
      Document symbolic colors and color expressions. · 9856c1b2
      Matthias Clasen authored
      2005-11-23  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/tmpl/gtkrc.sgml: Document symbolic colors and
      	color expressions.
      9856c1b2
    • Behdad Esfahbod's avatar
      Fix typo when checking libtool config deplibs_check_method. Moreover, · 124f1d71
      Behdad Esfahbod authored
      2005-11-23  Behdad Esfahbod  <behdad@gnome.org>
      
              * configure.in (enable_explicit_deps): Fix typo when checking
              libtool config deplibs_check_method. Moreover, enable explicit
              deps if we get anything other than pass_all from libtool. (part of
              #318750)
      124f1d71
    • Matthias Clasen's avatar
      Don't create a big string, since Visual C++ doesn't like strings longer · 80074638
      Matthias Clasen authored
      2005-11-23  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/updateiconcache.c (write_csource): Don't create a big
      	string, since Visual C++ doesn't like strings longer than 64k.
      	(#322238, Kazuki IWAMOTO
      80074638
    • Matthias Clasen's avatar
      Include gtkimcontextsimple.h (#322235, Kazuki IWAMOTO) · fce9359e
      Matthias Clasen authored
      2005-11-23  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkentry.c: Include gtkimcontextsimple.h  (#322235,
      	Kazuki IWAMOTO)
      fce9359e
    • 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
  6. 22 Nov, 2005 3 commits
    • Michael Natterer's avatar
      Made button-press timeouts which work like key repeat timeouts · dfa4870b
      Michael Natterer authored
      2005-11-22  Michael Natterer  <mitch@imendio.com>
      
      	Made button-press timeouts which work like key repeat timeouts
      	configurable. Addresses bug #142582:
      
      	* gtk/gtksettings.c: added properties "gtk-timeout-initial" and
      	"gtk-timeout-repeat" which defalt to 200/20 (ms).
      
      	Use the values from GtkSettings instead of hardcoding them
      	(the repeat value is either taken as-is for fast repeat or
      	multiplied by 5 for slow repeat). Changed all places to use these
      	two standard initial/repeat timings:
      
      	* gtk/gtkcalendar.c (unchanged 200/20)
      	* gtk/gtknotebook.c (unchanged 200/100)
      	* gtk/gtkpathbar.c (changed from 300/150 to 200/100)
      	* gtk/gtkrange.c (changed from 250/100 to 200/100)
      	* gtk/gtkspinbutton.c (unchanged 200/20)
      dfa4870b
    • Anders Carlsson's avatar
      Add quartz backend. · 1097260a
      Anders Carlsson authored
      2005-11-21  Anders Carlsson  <andersca@imendio.com>
      
              * configure.in:
              * gtk/Makefile.am:
              * gdk/Makefile.am:
      	* gdk/quartz/*:
      	Add quartz backend.
      
              * docs/tools/Makefile.am:
      	Only build docshooter when the X11 backend is used.
      
              * gtk/gtkplug-stub.c:
      	Include gtkplug.h here.
      
              * gtk/gtksocket-stub.c:
      	Include gtksocket.h here.
      1097260a
    • Anders Carlsson's avatar
      Add quartz backend. · fbebb232
      Anders Carlsson authored
      2005-11-21  Anders Carlsson  <andersca@imendio.com>
      
              * configure.in:
              * gtk/Makefile.am:
              * gdk/Makefile.am:
              * gdk/quartz/*:
              Add quartz backend.
      
              * docs/tools/Makefile.am:
              Only build docshooter when the X11 backend is used.
      
              * gtk/gtkplug-stub.c:
              Include gtkplug.h here.
      
              * gtk/gtksocket-stub.c:
              Include gtksocket.h here.
      fbebb232
  7. 21 Nov, 2005 5 commits
  8. 19 Nov, 2005 1 commit
    • Matthias Clasen's avatar
      Fix crashes in connection with pathbar scrolling (#321560, Bogdan Nicula) · 6e4a379e
      Matthias Clasen authored
      2005-11-18  Matthias Clasen  <mclasen@redhat.com>
      
      	Fix crashes in connection with pathbar scrolling (#321560,
      	Bogdan Nicula)
      
      	* gtk/gtkpathbar.c (gtk_path_bar_update_slider_buttons):
      	Stop scrolling when desensitising slider buttons.
      	(gtk_path_bar_scroll_timeout, gtk_path_bar_slider_button_press):
      	And use it here.
      
      	* gtk/gtkpathbar.h (struct _GtkPathBar): Add a separate
      	scrolling_down flag.
      6e4a379e
  9. 18 Nov, 2005 3 commits
  10. 17 Nov, 2005 2 commits
  11. 16 Nov, 2005 2 commits
    • Michael Natterer's avatar
      call gtk_window_process_updates() so the animation keeps running even if · 81be0b43
      Michael Natterer authored
      2005-11-16  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkimage.c (animation_timeout): call
      	gtk_window_process_updates() so the animation keeps running even
      	if the main loop is busy with sources that eat a lot of cpu with
      	high priority. Fixes bug #321444.
      
      	(gtk_image_new_from_animation): document the fact that the
      	animation will stop running if the main loop is busy with sources
      	that have priorities higher than G_PRIORITY_DEFAULT.
      
      	* tests/testimage.c: added test case that shows an animation even
      	though a cpu-eating idle function is running.
      81be0b43
    • Michael Natterer's avatar
      new internal function which destroys the display's event source. Also · 6e802acd
      Michael Natterer authored
      2005-11-16  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/x11/gdkevents-x11.c (_gdk_events_uninit): new internal
      	function which destroys the display's event source. Also removes
      	the source from the global display_sources list and unrefs it.
      
      	* gdk/x11/gdkprivate-x11.h: declare the function.
      
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_x11_dispose): call it
      	instead of half-destroying the source here.
      6e802acd
  12. 15 Nov, 2005 3 commits
  13. 14 Nov, 2005 2 commits