Yevgen Muntyan [Thu, 15 Nov 2007 17:00:33 +0000 (17:00 +0000)]
sort returned tags array by tags priority (#497102).
2007-11-15 Yevgen Muntyan <muntyan@tamu.edu>
* gtk/gtktextbtree.c (_gtk_text_btree_get_tags): sort returned
tags array by tags priority (#497102).
* gtk/gtktextiter.c (gtk_text_iter_get_tags), (gtk_text_iter_get_attributes):
* gtk/gtktextlayout.c (get_tags_array_at_iter): and do not sort it here.
Yevgen Muntyan [Thu, 15 Nov 2007 16:24:42 +0000 (16:24 +0000)]
do not call _gtk_text_btree_get_iter_at_line() and
2007-11-15 Yevgen Muntyan <muntyan@tamu.edu>
* gtk/gtktextlayout.c: (gtk_text_layout_get_line_display),
(get_style): do not call _gtk_text_btree_get_iter_at_line() and
_gtk_text_btree_get_tags() for every segment, instead call them
once and then collect the tags while iterating over the segments.
(get_tags_array_at_iter), (tags_array_toggle_tag): new functions
for tags array handling.
Avoid loading the ISO8859-1 iconv module. We're already doing all the
2007-11-12 Alexander Larsson <alexl@redhat.com>
* gdk/x11/gdkselection-x11.c:
Avoid loading the ISO8859-1 iconv module.
We're already doing all the required work anyway.
This saves 4kb private dirty memory per gtk+ process
Yevgen Muntyan [Sun, 11 Nov 2007 19:07:27 +0000 (19:07 +0000)]
Moved gtk_text_view_update_im_spot_location() calls into an idle, fixes
2007-11-11 Yevgen Muntyan <muntyan@tamu.edu>
* gtk/gtktextview.c: Moved gtk_text_view_update_im_spot_location()
calls into an idle, fixes #494776.
GtkTextViewPrivate:im_spot_idle, do_update_im_spot_location(),
queue_update_im_spot_location(), flush_update_im_spot_location(): new
field and functions to queue the call;
(changed_handler): call queue_update_im_spot_location() instead of
gtk_text_view_update_im_spot_location();
(gtk_text_view_key_press_event): flush the idle here.
Ryan Lortie [Thu, 8 Nov 2007 04:12:52 +0000 (04:12 +0000)]
Add GString 'text' to the property info structure. Used to accumulate
2007-11-07 Ryan Lortie <desrt@desrt.ca>
* gtk/gtkbuilderprivate.h: Add GString 'text' to the property info
structure. Used to accumulate property text across multiple 'text'
calls.
* gtk/gtkbuilderparser.c: Instead of translating/copying text on each
'text' call while in <property> accumulate the text until the end and
do it all in one go. This fixes handling of <!-- --> inside
properties as well as <property/> cases.
Richard Hult [Sat, 3 Nov 2007 13:12:45 +0000 (13:12 +0000)]
Fix bug #486369, by passing the selection info along when pasting.
2007-11-03 Richard Hult <richard@imendio.com>
* gtk/gtkclipboard-quartz.c: (clipboard_owner_destroyed),
(gtk_clipboard_set_contents), (clipboard_unset): Fix bug #486369,
by passing the selection info along when pasting.
Richard Hult [Sat, 3 Nov 2007 09:52:34 +0000 (09:52 +0000)]
Make the grab breaking on window move work on Leopard (as well as Tiger)
2007-11-03 Richard Hult <richard@imendio.com>
* gdk/quartz/GdkQuartzWindow.c:
* gdk/quartz/GdkQuartzWindow.h: Make the grab breaking on window
move work on Leopard (as well as Tiger) by ignoring which mouse
button is pressed.
Richard Hult [Thu, 1 Nov 2007 08:45:30 +0000 (08:45 +0000)]
Redo the fix for bug #492117, by adding a getter for the private drag
2007-11-01 Richard Hult <richard@imendio.com>
* gdk/quartz/GdkQuartzWindow.c:
* gdk/quartz/GdkQuartzWindow.h:
* gdk/quartz/gdkdnd-quartz.c:
* gdk/quartz/gdkquartz.h:
* gtk/gtkdnd-quartz.c: Redo the fix for bug #492117, by adding a
getter for the private drag context info so we don't need to
expose so much in the public quartz header file.
Owen Taylor [Sun, 28 Oct 2007 22:27:15 +0000 (22:27 +0000)]
Allow the ::delete-range handler to delete text after the text it was
2007-10-28 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextbuffer.c (gtk_text_buffer_delete_interactive): Allow
the ::delete-range handler to delete text after the text it was
explicitly asked to delete without confusing us as to whether
we're currently on an editable or not-editable segment.
(#491207)
Owen Taylor [Fri, 26 Oct 2007 14:02:06 +0000 (14:02 +0000)]
Pay attention to tags that turn invisibility off as well as tags that turn
2007-10-26 Owen Taylor <otaylor@redhat.com>
* gtk/gtktextbtree.c (_gtk_text_btree_char_is_invisible):
Pay attention to tags that turn invisibility off as well
as tags that turn invsibility on. (#488051, Mathias Hasselmann)
Johan Dahlin [Wed, 24 Oct 2007 11:52:56 +0000 (11:52 +0000)]
Give up instead of raising an error if we can't find the parent dialog
2007-10-24 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtk-builder-convert
(GtkBuilderConverter._convert_dialog_response):
Give up instead of raising an error if we can't find
the parent dialog when converting response ids.
(#479463, Priyank)
Richard Hult [Tue, 23 Oct 2007 19:07:32 +0000 (19:07 +0000)]
Handle NSFilenamesPboardType in addition to NSURLPboardType to support dnd
2007-10-23 Richard Hult <richard@imendio.com>
* gtk/gtkquartz.c:
(_gtk_quartz_get_selection_data_from_pasteboard): Handle
NSFilenamesPboardType in addition to NSURLPboardType to support
dnd with multiple files from Finder, based on patch from Paul
Davis (bug #467490).
Richard Hult [Tue, 23 Oct 2007 13:06:31 +0000 (13:06 +0000)]
Maintain a list for the stacking order of windows. Implement lower and
2007-10-23 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c:
(gdk_window_raise, gdk_window_lower, gdk_window_new,
_gdk_windowing_window_destroy): Maintain a list for the stacking
order of windows. Implement lower and raise for child windows. The
list for toplevels is created on demand, and cleared when a window
gets or resigns main status and when new windows are created.
(find_child_window_helper): Use the sorted list to go through
windows from top to bottom. Take any titlebar in consideration for
toplevels, to stop events from sometimes punching through (bugs
#473813 and #489370).
Tor Lillqvist [Fri, 19 Oct 2007 12:36:04 +0000 (12:36 +0000)]
Add a block around the WM_ACTIVATE case to avoid declaring variables in
2007-10-19 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Add a block
around the WM_ACTIVATE case to avoid declaring variables in the
middle of a block. (#488017)
Cody Russell [Thu, 18 Oct 2007 00:31:22 +0000 (00:31 +0000)]
gdk/win32/gdkevents-win32.c Force non-modal transient dialogs to iconify
2007-10-17 Cody Russell <cody@jhu.edu>
* gdk/win32/gdkevents-win32.c
* gdk/win32/gdkwindow-win32.[ch]: Force non-modal transient dialogs
to iconify with their parents on Win32. Maintain a list of transient
children, and whenever a window is hidden or restored we now do the
same thing to all connected transient windows above and below the
current window in the chain. See comment under WM_ACTIVATE for the
reasons why. (#164537, #371036, #405178)
Matthias Clasen [Tue, 16 Oct 2007 17:29:30 +0000 (17:29 +0000)]
Change testcase to not update screen information on configure-event, since
2007-10-16 Matthias Clasen <mclasen@redhat.com>
* tests/testxinerama.c: Change testcase to not update
screen information on configure-event, since it hides
information for all available screens but add a button
to query current monitor instead (#485437, Frederic Crozat)
Emmanuele Bassi [Wed, 10 Oct 2007 08:09:13 +0000 (08:09 +0000)]
Convert the format to the current locale before passing it to strtime().
2007-10-10 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkfilechooserdefault.c (list_mtime_data_func): Convert
the format to the current locale before passing it to
strtime(). Fixes corrupt dates with non-UTF8 encodings on
OpenSolaris. (#465380, Takao Fujiwara)
make sure the new cursor node is visible when we are done. (Fixes #472965,
2007-10-09 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): make
sure the new cursor node is visible when we are done. (Fixes #472965,
Carlos Garnacho).
we should only "don't move the cursor, but just select the current node"
2007-10-09 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): we should
only "don't move the cursor, but just select the current node" if the
cursor node is actually selectable. (Fixes #483730, reported by
Geoff Bache).