Tue Jan 30 15:51:25 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_real_set_focus): Fix a problem where
the focus widget sometimes wasn't drawn with the default if there
was no default widget.
* gdk/gdkim.c (gdk_ic_destroy): Don't rely on
ic->mask, which is completely unreliably set, when
deciding what items to unref/free. (A bit of a hack,
but this code will be dead in GTK+-2.0.) (#6739)
* gtk/gtkstyle.c (gtk_style_detach): free colors,
unreference pixmaps.
* gtk/gtkstyle.c (gtk_style_init): Reference colormap
for some extra safety.
Mon Jan 29 19:44:26 2001 Owen Taylor <otaylor@redhat.com>
[ Backport from HEAD ]
* gtk/gtkmenuitem.c gtk/gtkmenushell.c: Patch from David Santiago
<mrcooger@cyberverse.com> so that when selecting menus with the
mouse, the first item will not be selected, but when selecting
with an accelerator, or navigating left-right on a menubar with
the menus popped up, the first item will be selected.
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 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).
Sun Jun 11 12:46:19 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_set_default_icon): Fix
cut and paste typo where wrong pixmap was being
unref'ed. (Pointed out by a friend of KUSANO Takayuki.)
Sun Jun 11 10:22:36 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkselection.c (gtk_selection_bytes_per_item):
Add helper function to compute format / bytes
relationship. Use in a couple places to fix up
errors which assume 8 * format.
* gtk/gtkselection.c (gtk_selection_request): Use 32
rather than 8 * sizeof (GdkAtom), to work correctly
on Alpha.
Fri May 19 09:54:53 2000 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_clip_rect): fix mangling of rectangle
height with its width, spotted by Justin David Smith (Ytinasni)
<justins@velius.chaos2.org>.
Fri May 19 06:49:23 2000 Tim Janik <timj@gtk.org>
* gtk/gtkfontsel.c (gtk_font_selection_get_font_name): handle
"(nil)" foundries, patch from Grigorios Magklis.
* gtk/gtkfontsel.c (gtk_font_selection_load_font): don't crash
on non-available fonts, based on a patch by Grigorios Magklis
<maglis@cs.rochester.edu>.
Fri May 19 05:52:08 2000 Tim Janik <timj@gtk.org>
* gdk/gdkx.h: wrap contents into extern "C" { }, patch by Leonardo
Zide (leo@lokigames.com).
Thu May 4 02:04:46 2000 Tim Janik <timj@gtk.org>
* configure.in (STRIP_DUMMY): some Make 3.79 $(strip ) versions are
broken and require an empty arg, give it to them.
Sun Mar 26 03:21:28 2000 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_signal_handlers_destroy): when unref-ing
the handlers, also invalidate them. bug nailed down by Karl Nelson
<kenelson@ece.ucdavis.edu>.
Mon Mar 13 18:37:55 2000 Owen Taylor <otaylor@redhat.com>
* gdk/gdkdnd.c: Fix a bunch of cases where XGetWindowProperty()
is called without trapping X errors.
Thu Mar 9 22:10:56 GMT 2000 Tony Gale <gale@gtk.org>
* docs/gtkfaq.sgml: FAQ Update:
- Minor cleanups (Emmanuel, me)
- New questions:
I need to add a new signal to a GTK+ widget. Any idea? (timj)
How can I retrieve the text from a GtkMenuItem? (timj)
How do I validate/limit/filter the input to a GtkEntry? (me)
Memory does not seem to be released when I free the list
nodes I've allocated (timj)
Fri Feb 25 10:48:53 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.*: Fix problem where stray '"' characters found their
way into the fontset lists.