Thu Mar 15 01:31:07 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkim.c (_gdk_wcstombs_len): Make somewhat more
safe on broken libcs, also add a g_return_if_fail()
to make the failure case when we somehow get a
string of invalid wide characters more clear.
(#51644, Sergey Vlasov)
Thu Mar 15 01:05:49 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Fix
problem in testing the result of g_get_home_dir(),
and test the result of g_get_home_dir() in another
place for consistency. (#51833). Also fix off-by-one
error in check against GTK_RC_MAX_MODULE_PATHS.
Wed Mar 14 23:38:23 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_init_check): Fix missed equal_pos => option
for --with-xinput=gxi. (Which is broken anyways, but
oh well...) (#51973)
* gtk/gtkeditable.c (gtk_editable_get_event_time): Fix excess free
in case where there is no current event. (#51889)
* gtk/gtkwindow.[ch]: Handle focus for the case of
PointerRoot (no window manager) by using algorithm taken
from xterm.
Mon Mar 5 16:38:15 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): Only
check the ignore_enter flag for the menu shell that
the item is actually a child of, not for attached
submenus. (#51536)
Fri Mar 2 12:35:40 2001 Owen Taylor <otaylor@redhat.com>
* Release 1.2.9
* NEWS: Final update for 1.2.9
* INSTALL INSTALL.in: Add note about the movement of
the include files.
Wed Feb 28 19:10:43 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
Hwang to move call to sync_selection() up a few lines
to before the row list is modified, to fix crash when
removing rows in the undo_selection list.
(Test case provided by Daniel Elstner:
http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)
Wed Feb 28 15:40:27 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalender.c gtk/gtkdnd.c gtk/gtkitemfactory.c gtk/gtklayout.c
gtk/gtkplug.c gtk/gtksocket.c gtk/gtktypeutils.c
gtk/gtkwidget.c genmarshal.pl: Fix implicit casts
between void * and function pointers.
* gtk/gtklayout.c: Remove cruft after #endif
* gtk/gtkdnd.c: Include stdlib.h for abs.
Tue Feb 27 18:38:27 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_map): Redo the focus stuff
once more. Keep track of the focus status via an event
filter, so we can keep track of whether the window
or any child has the focus; something that requires
fields from the XEvent not in the GdkEvent.
Install this event filter in gtk_window_map() before mapping
the window, on the guess that this is unlikely to be overriden
without the overrider chaining up. (fingers crossed)
Tue Feb 27 04:14:21 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmain.c (gtk_propagate_event): Remove
left-over debug-printf.
* gtk/gtkdnd.c (gtk_drag_find_widget): Don't use
new_allocation.x/new_allocation.y for coordinate,
translation since they are clip, use the
x_offset/y_offset variables we keep for the purpose instead.
Tue Feb 27 02:29:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_find_widget): When recursing,
get the list of children and ref them all before walking
through the list, to prevent problems when the widget
hierarchy changes in ::drag_motion/drop handlers.
* gtk/gtkmain.c (gtk_propagate_event): Only activate
special key-press grab handling for widgets within
GtkWindows. Otherwise, fall through to normal case.
This prevents key events being sent twice to GtkInvisible
widgets, which can cause all sorts of mischief.
Tue Feb 27 01:29:34 2001 Owen Taylor <otaylor@redhat.com>
* configure.in acconfig.h gdk/gdkfont.c gdk/gdkim.c INSTALL: Add a
configuration option --with-native-locale, that greatly speeds up
wide-character/multibyte conversions by dropping the indirection
through Xlib's property-conversion functions. Off by default due
to lack of testing for portability, but it should, in general be a
more correct way of doing things, and should also remove much of
the speed hit that the recent change to the handling of 8-bit
fonts may have introduced.
Mon Feb 26 16:34:33 2001 Owen Taylor <otaylor@redhat.com>
* README: Update to describe submitting patches
and bug reports to bugzilla.gnome.org.
Tue Feb 20 23:48:16 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkim.c,gdk/gdkprivate.h: Add private function
_gdk_wcstombs_len() which takes a length.
* gdk/gdkfont.c,gdk/gdkprivate.h,gdk/gdkdraw.c:
Consistently handle calls to _wc() font for GDK_FONT_FONT
routines by:
a) for 8-bit fonts, converting to chars via wcstombs
(Will make GtkLabel handle using GDK_FONT_FONT for
non-iso-8859-1 a wee bit better, though GDK_FONT_FONTSET
is still the only supported way to get correct i18n.
#50834)
b) for 16-bit fonts, assuming each wchar is a glyph
index. (Broken, but no more broken than anything else)
Mon Feb 26 21:36:11 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.[ch] (gtk_window_focus_in/out_event): We can't
maintain a flag in gtk_window_focus_in/out, because
GtkPlug and cut-and-pastes of GtkPlug override these
methods and don't chain up. So back out recent change
adding such a flag, and instead recycle the hack
GtkPlug uses of making GTK_WIDGET_HAS_FOCUS on the
top level represent this information
Fri Feb 23 15:06:48 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktree.c (gtk_tree_class_init): Do the setting
of tree->root_tree in parent_set rather than _map(),
fixing #50892 in a bit better manner.
Thu Feb 22 20:50:08 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkplug.c (gtk_plug_set_focus): Change to parent
implementation instead of cut-and-paste that was
out of sync.
* gtk/gtkwindow.[ch] (gtk_window_set_focus): Only send
::focus_in_event when the toplevel window actually
has focus on it. (Fixes#50857, Akira Higuchi)
Thu Feb 22 19:53:55 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Grab
on a offscreen GtkInvisible so that we can move handle boxes
whose parents are iconified or on another desktop. Also,
make sure we don't reattach to such parents. (#1923)
Thu Feb 22 16:45:17 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_get_font[_name]):
Update the current font from the contents of the entry.
(#3123)
Tue Feb 2 11:22:33 2001 Jody Goldberg <jgoldberg@home.com>
* gtk/gtkstyle.c : Remove duplicate fwd decl for
gtk_default_draw_shadow.
Tue Feb 20 11:40:58 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkimage.c (gdk_image_new): Remove excess
warning, make warnings more verbose, treat a error
in shmat as permanent, and don't try again.
(#51163, Ed Randall.)
Mon Feb 19 20:46:21 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_key_press): Take key presses
of GDK_Left/GDK_Right when there is a selection to mean
"move the cursor to the start/end of the selection".
(Inspired by #50492, Jay Cox, though the implementation
is different for GTK+-1.2.)
Mon Feb 19 20:15:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
delay for the first click before starting to scroll.
(based on #51026, gtk-enf-990512-0.patch, Eric Fisher)
* gtk/gtktext.c: GtkText should have I-beam cursor.
(based on gtk-enf-990513-1.patch, Eric Fisher.)
Mon Feb 19 18:39:21 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkselection.c (gdk_string_to_compound_text,gdk_text_property_to_text_list):
Robustify by stripping control characters not allowed in COMPOUND_TEXT
out before passing to XmbTextpropertyToTextList(), and from the
result of XmbTextListToTextProperty(). This is in the spirit
of "Be lenient in what you receive, strict in what you generate."
(Fixes#1704)
Mon Feb 19 14:20:36 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
mask. (#51039, fix from Martin Maierhofer)
Fri Feb 16 20:09:42 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
for unshifted + and shifted = for non-us keyboards.
Make <Control>+ and <Control>- work as well as
<Control>KP_Plus, <Control>KP_Minus for recursive
open/close. (#2682, Ren Seindal)
Fri Feb 16 18:50:59 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
the active menu item before deactivating the menu,
so gtk_menu_popdown doesn't change the history. (#50964)
Fri Feb 16 15:55:22 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktreeitem.c (gtk_tree_item_draw_lines):
draw lines with text_gc rather than black_gc.
(Patch from Vlad Harchev <hvv hippo ru>, #50926)
Tue Feb 13 15:39:28 2001 Owen Taylor <otaylor@redhat.com>
* 1.2.9pre1
* NEWS: Update.
* docs/Makefile.am: Remove building of HTML for
gdk.texi gtk.texi since it doesn't work.
Tue Feb 13 13:56:58 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (find_char_width): Fix problems with
characters < 256 in wide character locales. (Patch
from Yoichi Imai.)