Commit Graph

1362 Commits

Author SHA1 Message Date
Owen Taylor
db6d3a0ed7 Fix a problem where the focus widget sometimes wasn't drawn with the
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.
2001-01-30 20:57:15 +00:00
Owen Taylor
765398ca79 [ Backport from HEAD ]
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.
2001-01-30 00:46:44 +00:00
Owen Taylor
6596ade0f8 [ Couple of additional tiny cleanup on last commit ]
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)
2001-01-30 00:06:03 +00:00
Owen Taylor
9860eb566b Handle setting the text of a cell to the old pointer value better, by
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)
2001-01-30 00:02:49 +00:00
Owen Taylor
4e2ccb69e0 Handle --display= forms of options taking arguments. Fix some memory leaks
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)
2001-01-29 23:41:37 +00:00
Owen Taylor
46fd718c6b Return if fontsel->font_index == -1 - that is, if no font is selected.
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)
2001-01-29 21:38:10 +00:00
Owen Taylor
ff6120f496 When removing an item from a menu, check to see if it matches
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-29 20:36:55 +00:00
Alexander Larsson
769cc1b56b Set the colormap of input only windows to the system colormap. The
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.
2001-01-03 09:42:38 +00:00
Alexander Larsson
a9efc10c62 Attach the style to the window so that the style it is not leaked when
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.
2000-12-20 16:52:46 +00:00
Ramiro Estrugo
dbd5dc6763 Deal with the possibility that XGetImage() might return NULL. Allocate the
* 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.
2000-12-20 04:39:09 +00:00
Owen Taylor
2c4b96bf9e Fix off-by-one error in checks. (Dave Lambert)
Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
	off-by-one error in checks. (Dave Lambert)
2000-12-12 16:53:43 +00:00
Owen Taylor
6d46992454 Strip GDK_RELEASE_MASK out of the state we get from X as a temporary hack
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)
2000-12-03 16:50:04 +00:00
Anders Carlsson
a814d8c82f Make GtkToggleButtons have a correct appearance when disabled and active at the same time. Thanks to Tomas gren for noticing this. 2000-12-02 17:59:00 +00:00
Owen Taylor
eb5bc96b67 Fix some signed/unsigned comparison problems. (#6510, David Kaelbling)
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)
2000-11-30 17:40:52 +00:00
Owen Taylor
2cabfbf0e5 Fix stupid bug causing extra word movement backwards. (#15282, Marco
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)
2000-11-30 16:23:54 +00:00
Owen Taylor
f83f73d7d5 Change return type to boolean (Oskar Liljeblad, #18648)
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)
2000-11-30 01:59:44 +00:00
Owen Taylor
d102c8eccb Allow mask to be NULL.
Wed Nov 29 20:44:09 2000  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkclist.c (gtk_clist_get_pixtext): Allow mask to
	be NULL.
2000-11-30 01:45:56 +00:00
Tim Janik
ef30d8a2b9 [ Backport from 1.3 / otaylor, 29 Nov 2000 ]
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-30 01:22:01 +00:00
Martin Baulig
663a34be8b Make the pkg-config scripts actually work.
2000-11-29  Martin Baulig  <baulig@suse.de>

	* *.pc.in: Make the pkg-config scripts actually work.
2000-11-29 22:00:02 +00:00
Federico Mena Quintero
8ef5b29e80 Connect to the "changed" callback of the adjustment. We need to redraw the
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.
2000-11-27 17:40:47 +00:00
Owen Taylor
4ff5d8fa3e [ backport from 1.3.x ]
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-11-18 16:59:40 +00:00
Elliot Lee
90ef5b7758 To handle a really weird error case (race condition), check if
* gtk/gtksocket.c: To handle a really weird error case (race condition),
check if socket->plug_window is there before doing things with it.
2000-11-10 21:32:59 +00:00
Pablo Saratxaga
f777289e65 corrected Big5 support
added fiel for Azeri
2000-11-03 22:40:27 +00:00
Tim Janik
862b8c9481 up version number to 1.2.9, interface 4, binary 9.
Mon Oct 16 11:39:29 2000  Tim Janik  <timj@gtk.org>

        * configure.in: up version number to 1.2.9, interface 4, binary 9.
2000-10-16 10:54:09 +00:00
Yukihiro Nakai
6dddc43586 configure.in: Add zh_CN.GB2312 (Chinese GB2312) to ALL_LINGUAS. 2000-10-13 07:21:07 +00:00
Martin Baulig
8e79f6c56a Use the correct pkg-config syntax in all the *.pc.in files
(the version that comes with the RedHat 7.0 glib-gtkbeta RPM).
2000-09-30 02:09:42 +00:00
Martin Baulig
09dd53db6c Provide pkg-config scripts.
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'.
2000-09-29 22:43:24 +00:00
George Lebl
b6d153b2e2 Backported Nils Barth's patch for submenu navigation with Owen's fixes and
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.
2000-09-08 01:50:35 +00:00
George Lebl
228a23e2ff Add some documenting comments about GTK_CAN_DEFAULT, GTK_HAS_DEFAULT and
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.
2000-09-03 06:20:22 +00:00
Owen Taylor
935faa6b4c Don't leave dangling ->prev fields when merging lists. (Found
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)
2000-08-18 21:37:06 +00:00
Pablo Saratxaga
9e3e202fa9 Added Serbian files 2000-07-30 12:23:33 +00:00
Tim Janik
0d9d12d00c applied patch from Phil Thompson <phil@river-bank.demon.co.uk> that
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-27 03:12:32 +00:00
Sebastian Wilhelmi
b5b621ce5a Include gdk/gdkrgb.h and gtk/gtktypebuiltins.h resp. outside of the extern
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>.
2000-07-19 14:12:07 +00:00
Tim Janik
7e8b6c50c9 scratched notion of completely outdated email adress:
Tue Jul 11 20:47:13 2000  Tim Janik  <timj@gtk.org>

        * docs/gtk_tut_it.sgml (name):
        * docs/gtk_tut_fr.sgml (name):
        * docs/gtk_tut.sgml (name): scratched notion of completely
        outdated email adress: s/timj@psynet.net/timj@gtk.org/.
2000-07-11 19:03:27 +00:00
Tim Janik
f969f69af3 eek, i've never seen a bug here, never been here and never fixed anything
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).
2000-07-11 06:08:02 +00:00
Pablo Saratxaga
a07c4138b8 movec gtkrc.bg to more generic gtkrc.cp1251 2000-06-18 13:55:15 +00:00
Owen Taylor
2589e32c32 Fix cut and paste typo where wrong pixmap was being unref'ed. (Pointed out
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.
2000-06-11 18:02:31 +00:00
Tim Janik
52223d33df released Gtk+-1.2.8.
Thu May 25 03:54:30 2000  Tim Janik  <timj@gtk.org>

        * released Gtk+-1.2.8.


(see? i _can_ get it right the first time ;)
2000-05-25 01:56:23 +00:00
Tim Janik
3a5d4e0087 gtk version 1.2.8, interface age 3, binary age 8.
Thu May 25 02:30:57 2000  Tim Janik  <timj@gtk.org>

        * configure.in: gtk version 1.2.8, interface age 3, binary age 8.
2000-05-25 01:00:26 +00:00
Tim Janik
90e47067c4 fix mangling of rectangle height with its width, spotted by Justin David
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>.
2000-05-19 08:20:29 +00:00
Tim Janik
42c524897f handle "(nil)" foundries, patch from Grigorios Magklis.
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).
2000-05-19 05:42:06 +00:00
Raph Levien
eda7c00f58 Fixed segfault when gdk_rgb_min_colors exceeds maximum cube size. 2000-05-17 08:04:06 +00:00
Pablo Saratxaga
ab364d726a Added a gtkrc.cp1255 for Yiddish/Hebrew fontset
Added "*-r-*" to all fontsets; as a last resort default.
2000-05-08 18:49:18 +00:00
Tim Janik
ee76654247 some Make 3.79 $(strip ) versions are broken and require an empty arg,
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.
2000-05-04 00:19:04 +00:00
Tim Janik
2e34ce303a when unref-ing the handlers, also invalidate them. bug nailed down by Karl
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>.
2000-03-26 01:30:34 +00:00
Owen Taylor
74bd7ec0a1 Fix a bunch of cases where XGetWindowProperty() is called without trapping
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.
2000-03-13 23:41:53 +00:00
GMT 2000 Tony Gale
388e9cc8b1 FAQ Update: - Minor cleanups (Emmanuel, me) - New questions: I need to add
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)
2000-03-10 09:36:09 +00:00
Tim Janik
a24c0e61f6 nothing really 2000-03-01 05:08:59 +00:00
GMT 2000 Tony Gale
877738b90a Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
Tue Feb 29 13:10:00 GMT 2000  Tony Gale <gale@gtk.org>

        * gdk/gdkwindow.h gdk/x11/gxid.c gtk/gtkclist.c gtk/gtkclist.h
          gtk/gtkctree.c gtk/gtkmenu.h gtk/gtkwidget.c gtk/testgtk.c
          docs/styles.txt docs/refcounting.txt docs/gtkfaq.sgml
          docs/gtk_tut.sgml docs/gtk.texi TODO:

          Spelling/grammar fixes from Martin Buchholz <martin@xemacs.org>
2000-02-29 13:28:13 +00:00
Owen Taylor
fcfaafd93e Fix problem where stray '"' characters found their way into the fontset
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.
2000-02-25 15:49:36 +00:00