1. 01 Dec, 2005 1 commit
  2. 30 Nov, 2005 1 commit
  3. 29 Nov, 2005 2 commits
    • Matthias Clasen's avatar
      Properly handle model changes in GtkTreeSelection: (#322569, Milosz · 924765a2
      Matthias Clasen authored
      2005-11-29  Matthias Clasen  <mclasen@redhat.com>
      
      	Properly handle model changes in GtkTreeSelection: (#322569,
      	Milosz Derezynski)
      
      	* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
      	Get a reference to the model, and stop the iteration if the model
      	of the treeview is changed on the way.
      
      	* gtk/gtktreeprivate.h:
      	* gtk/gtktreeselection.c (_gtk_tree_selection_emit_changed): New
      	private function to emit the GtkTreeSelection::changed signal.
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_model): Call
      	_gtk_tree_selection_emit_changed() when the model changes.
      924765a2
    • Federico Mena Quintero's avatar
      Fixes the critical warnings from bug #317999, thus fixing the bug · 62ed8cb1
      Federico Mena Quintero authored
      2005-11-28  Federico Mena Quintero  <federico@ximian.com>
      
      	Fixes the critical warnings from bug #317999, thus fixing the bug
      	completely:
      
      	* gtk/gtkfilechooserdefault.c
      	(gtk_file_chooser_default_get_paths): In SELECT_FOLDER mode,
      	use _gtk_file_chooser_get_current_folder_path() instead of fetching the
      	impl->current_folder directly.  The latter may be null if we are
      	in RELOAD_NONE state.
      62ed8cb1
  4. 28 Nov, 2005 8 commits
    • Federico Mena Quintero's avatar
      Fix bug #321560, based on a patch by Bogdan Nicula (bogdanni@hotmail.com): · 4ac1632f
      Federico Mena Quintero authored
      2005-11-28  Federico Mena Quintero  <federico@ximian.com>
      
      	Fix bug #321560, based on a patch by Bogdan Nicula (bogdanni@hotmail.com):
      
      	* gtk/gtkfilechooserdefault.c (up_folder_handler): Don't add the
      	current_folder to the pending select paths here; the path bar will
      	give it to us now.
      	(path_bar_clicked): Add the child_path to the pending select paths
      	here.
      	(show_and_select_paths): Don't filter out folders.
      	(show_and_select_paths): Don't take separate arguments for
      	only_one_path and multiple paths.
      
      	* tests/autotestfilechooser.c (test_folder_switch_and_filters):
      	New test about preserving the filters when we change folders.
      4ac1632f
    • Matthias Clasen's avatar
      Insert an LRM, to prevent -20 to come out as 20- in RTL locales. (#322571, · 5eb2aac9
      Matthias Clasen authored
      2005-11-28  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkscale.c (_gtk_scale_format_value): Insert an LRM, to prevent
      	-20 to come out as 20- in RTL locales.  (#322571, Tze'ela Hebron)
      5eb2aac9
    • Matthias Clasen's avatar
      Buttons use the label property for stock ids. (#322565, Milosz Derezynski) · be2dc85c
      Matthias Clasen authored
      2005-11-28  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkaction.c (gtk_action_sync_button_stock_id)
      	(connect_proxy): Buttons use the label property for stock ids.  (#322565,
      	Milosz Derezynski)
      be2dc85c
    • 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
  5. 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
  6. 25 Nov, 2005 1 commit
  7. 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
  8. 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
  9. 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
  10. 21 Nov, 2005 5 commits
  11. 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
  12. 18 Nov, 2005 3 commits
  13. 17 Nov, 2005 2 commits