Mon Jan 29 19:00:01 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
the text of a cell to the old pointer value better, by
copying the new text before freeing the old text. Some code
cleanup. (#8079, Karl Nelson)
Mon Jan 29 19:00:01 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtk{ctree.c,clist.c} (set_cell_contents): Handle setting
the text of a cell to the old pointer value better, by
copying the new text before freeing the old text. Some code
cleanup. (#8079)
Mon Jan 29 18:33:24 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.c (gdk_init_check): Handle --display= forms
of options taking arguments. Fix some memory leaks with
repeated arguments. (#28842, Sam Hunter)
Mon Jan 29 16:34:28 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkfontsel.c (gtk_font_selection_select_best_size): Return
if fontsel->font_index == -1 - that is, if no font is selected.
(Should fix#50290)
Mon Jan 29 15:22:51 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c (gtk_menu_remove): When removing an
item from a menu, check to see if it matches
menu->old_active_menu_item, and if so, unref and clear
old_active_menu_item (Patch from Pavel Cisler)
* gtk/gtkmenushell.c (gtk_menu_shell_remove): Unset
menu_shell->active_menu_item, if it is the child being
removed. (Patch based on that of Gene Ragan, #50337)
2001-01-03 Alexander Larsson <alexl@redhat.com>
* gdk/gdkwindow.c:
Set the colormap of input only windows to the system colormap.
The previous GtkInvisible patch generated a lot of colormap ==
NULL warnings without this.
2000-12-20 Alexander Larsson <alexl@redhat.com>
* gtk/gtkinvisible.c (gtk_invisible_realize):
Attach the style to the window so that the style it is not
leaked when unrealizing the window.
* gdk/gdkimage.c: (gdk_image_get):
Deal with the possibility that XGetImage() might return NULL.
Allocate the GdkImagePrivate structure only after XGetImage()
succeeds in order not to dereference a NULL ximage pointer. This
prevents a core dump when XGetImage() fails - which is unlikely,
but can happen due to race conditions accessing the geometries of
drawables. An x error will still be triggered, but the gdk image
wrapper at least wont seg fault.
Sun Dec 3 11:44:07 2000 Owen Taylor <otaylor@redhat.com>
* gdk/gdkevents.c: Strip GDK_RELEASE_MASK out of
the state we get from X as a temporary hack to
deal with the fact that GDK_RELEASE_MASK has the
same values as bits used by XFree86 to indicate the
keyboard group. (After patch from Vlad Harchev)
Thu Nov 30 12:39:22 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_insert_text): Fix
some signed/unsigned comparison problems. (#6510,
David Kaelbling)
Thu Nov 30 11:19:56 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_move_word): Fix stupid
bug causing extra word movement backwards. (#15282, Marco Goetze)
Wed Nov 29 21:47:26 2000 Owen Taylor <otaylor@redhat.com>
[ Backport from 1.3.x ]
* gtk/gtktoolbar.c (gtk_toolbar_prepend_widget): Fix to
prepend not append. (Pointed out by Brett Hall.)
#11887.
Wed Nov 29 20:56:38 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.[ch] (gtk_widget_is_ancestor): Change
return type to boolean (Oskar Liljeblad, #18648)
Thu Oct 26 02:10:32 2000 Tim Janik <timj@gtk.org>
[ Backport from 1.3 / otaylor, 29 Nov 2000 ]
* gtk/Makefile.am: invoke maketypes.awk with LC_ALL=C to avoid
localization misbehaviour.
2000-11-27 Federico Mena Quintero <federico@helixcode.com>
* gtk/gtkspinbutton.c (gtk_spin_button_set_adjustment): Connect to
the "changed" callback of the adjustment. We need to redraw the
spin button's arrows when the adjustment's range changes.
(adjustment_changed_cb): Draw the arrows.
(gtk_spin_button_value_changed): Draw the arrows.
Sat Nov 18 11:56:39 2000 Owen Taylor <otaylor@redhat.com>
[ backport from 1.3.x ]
* gdk/gdkrgb.c: If possible, create only a single shm segment and
use multiple parts of it instead of creating a bunch of separate
segments, since the maximum number of segments per system is not
large.
* gdk/x11/gdkimage-x11.c (gdk_image_new): Don't set gdk_use_xshm
to False when we get EINVAL from shmget so that the caller of
gdk_image_new can retry with a smaller segment size.
Sat Nov 18 11:45:09 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkcalendar.c: Patch from ChiDeok Hwang to fix
memleaks found by Evan Martin.
2000-09-30 Martin Baulig <baulig@suse.de>
* gtk+.pc.in, gdk.pc.in: Provide pkg-config scripts.
* configure.in: Create *.pc scripts from the *.pc.in
templates.
* Makefile.am (pkgconfig_DATA): Install the *.pc
scripts in `$(libexecdir)/pkgconfig'.
Thu Sep 07 20:50:49 2000 George Lebl <jirka@5z.com>
* gtk/gtkmenu.c: Backported Nils Barth's patch for submenu
navigation with Owen's fixes and suggestions. The original
ChangeLog from Owen for HEAD goes as folllows: Apply patch from
Nils Barth and David Santiago to improve submenu
navigation. The patch does this by creating a triangular
region from the point where the pointer leaves the
menu to the submenu. While the pointer is in
that region and a timeout has not expired, events
that would cause the active submenu to change are
ignored.
Sun Sep 03 00:47:08 2000 George Lebl <jirka@5z.com>
* gtk/gtkwidget.h: Add some documenting comments about
GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and GTK_RECEIVES_DEFAULT
just as owen said on irc.
* gtk/gtkwindow.c (gtk_window_set_default): Don't blindly
set HAS_DEFAULT. Only set it if there isn't another window
holding it (a focus window which RECEIVES_DEFAULT) and only unset
it if the widget is not the focused window with RECEIVES_DEFAULT.
This fixes weird double default bugs in dialogs which has things
call gtk_window_set_default at times.
Fri Aug 18 17:27:46 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c (gtk_clist_merge): Don't leave dangling
->prev fields when merging lists. (Found simultaneously
by Pawel Salek and Jakub Jelinek)
Thu Jul 27 05:06:29 2000 Tim Janik <timj@gtk.org>
* gtk/gtktable.c: applied patch from Phil Thompson
<phil@river-bank.demon.co.uk> that enables space settings for
the last row/columns as well.
2000-07-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gdk/gdk.h, gtk/gtktypeutils.h: Include gdk/gdkrgb.h and
gtk/gtktypebuiltins.h resp. outside of the extern "C" block. Makes
some C++ compiler happy. Reported by Denis Vakatov
<vakatov@peony.nlm.nih.gov>.
Tue Jul 11 08:04:58 2000 Tim Janik <timj@gtk.org>
* gtk/gtktree.c (gtk_real_tree_select_child): eek, i've never seen
a bug here, never been here and never fixed anything ;(
(don't segfault if tree->root_tree is NULL, which happens prior
to widget realization, but puke instead).