Commit Graph

2218 Commits

Author SHA1 Message Date
Owen Taylor
9f56908ea3 Fix some reference counting problems problems in last patch.
Fri Feb  2 13:38:21 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmain.c (gtk_propagate_event): Fix some reference
	counting problems problems in last patch.
2001-02-02 19:43:00 +00:00
Owen Taylor
c30e743f8e When a grab widget is in effect, give the grab widget a first crack at
Fri Feb  2 13:20:12 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmain.c (gtk_propagate_event): When a grab
	widget is in effect, give the grab widget a first
	crack at KEY_PRESS/RELEASE events. (#424)
2001-02-02 18:35:29 +00:00
Owen Taylor
aa4fd35cfa Use $(libdir), not $(exe_prefix), since some people set $(libdir)
Fri Feb  2 12:02:23 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkrc.c Makefile.am: Use $(libdir), not $(exe_prefix),
	since some people set $(libdir) separately. (#1290, David Kaelbling)
2001-02-02 17:16:12 +00:00
Owen Taylor
e1068cb50d Improve warnings a bit in a fashion similar to the part of
Thu Feb  1 20:32:49 2001  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdk.c: Improve warnings a bit in a fashion similar
	to the part of gtk-enf-990513-0.patch (Eric Fisher) that hasn't
	been superceded.
2001-02-02 01:36:22 +00:00
Owen Taylor
638adacbfc If PATH_MAX and MAXPATHLEN are not defined, define MAXPATHLEN to 2048.
Thu Feb  1 18:25:46 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfilesel.c: If PATH_MAX and MAXPATHLEN are not
	defined, define MAXPATHLEN to 2048. (The Hurd doesn't have
	MAXPATHLEN, but the code here depends on a fixed value.)
	(#4524)
2001-02-01 23:32:41 +00:00
Owen Taylor
06c02d4d97 Remove a dependency on bin->child != NULL. (Basically, just a cleanup)
Wed Jan 31 22:01:04 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkhandlebox.c (gtk_handle_box_draw): Remove a dependency
	on bin->child != NULL. (Basically, just a cleanup)

	* gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Handle the case
	where child == NULL and handle_position == RIGHT or BOTTOM. (#8002)
2001-02-01 15:25:37 +00:00
Owen Taylor
87b9290e56 If the node being moved isn't viewable there is no way that moving the
Wed Jan 31 21:20:39 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkctree.c (real_tree_move): If the node being moved isn't
	viewable there is no way that moving the node will cause the
	focus row to become not viewable, so omit check on the visibility
	of new_sibling, which is irrelevant. (Fixes #8002, David Helder)
2001-02-01 02:34:36 +00:00
Owen Taylor
6ceae1b5bf Check bounds when setting selection. (#7302)
Wed Jan 31 20:33:35 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkentry.c (gtk_entry_set_selection): Check bounds
	when setting selection. (#7302)
2001-02-01 01:50:49 +00:00
Tim Janik
c007e30064 avoid regeneration of gtkmarshal.c from stamp file dep, when not
Thu Feb  1 02:26:18 2001  Tim Janik  <timj@gtk.org>

        * gtk/Makefile.am ($(srcdir)/gtkmarshal.c): avoid regeneration
        of gtkmarshal.c from stamp file dep, when not @REBUILD@,
        fixes #11008.
2001-02-01 01:25:43 +00:00
Owen Taylor
8a94a2c795 Apply patch gtk-gharris-000907-0.patch (Guy Harris) fixing problem where
Wed Jan 31 19:23:01 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfontsel.c (gtk_font_selection_set_font_name):
	Apply patch gtk-gharris-000907-0.patch (Guy Harris) fixing problem where
	wrong row was selected when filters filtered out some fonts.
2001-02-01 00:26:25 +00:00
Owen Taylor
aff67cd4da Make the sensitivity of the reparented child track that of the original
Wed Jan 31 18:49:33 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkoptionmenu.c (gtk_option_menu_item_state_changed_cb):
	Make the sensitivity of the reparented child track that of
	the original parent menu item. (#34218, David Hodson)

	* gtk/gtkoptionmenu.c (gtk_option_menu_item_destroy_cb): Handle
	the case where the current item is destroyed properly.

	* gtk/gtkoptionmenu.c: Some additional code cleanups and fix
	some edge cases with child-less menuitems.
2001-01-31 23:53:33 +00:00
Owen Taylor
69871da39f Make Return key pop down window. (#12074, Jon K Hellan)
Wed Jan 31 17:16:13 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkcombo.c (gtk_combo_window_key_press): Make Return
	key pop down window. (#12074, Jon K Hellan)
2001-01-31 22:21:32 +00:00
Owen Taylor
b1aeb5717d Don't allow toggling of rows off in BROWSE or EXTENDED mode. (#12072, Greg
Wed Jan 31 16:21:42 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtklist.c (gtk_list_signal_item_toggle): Don't allow
	toggling of rows off in BROWSE or EXTENDED mode. (#12072, Greg
	Hudson.) The solution here isn't perfect - you get an extraneous
	emission of "toggle", which could conceivably confuse an app,
	but better than the current situation. LXR search seems to
	indicate that no apps in GNOME CVS connect to "toggle".
2001-01-31 21:28:20 +00:00
Owen Taylor
39f0a2780f Move gtkfeatures.h from gtk_public_h_sources to directly here to avoid
Wed Jan 31 15:46:13 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/Makefile.am (libgtkinclude_HEADERS): Move gtkfeatures.h from
	gtk_public_h_sources to directly here to avoid warning when
	building srcdir != builddir. (#9656)
2001-01-31 20:48:43 +00:00
Owen Taylor
bebf3ad988 Patch from Kipp Hickman to make the event handlers in gtkrange.c return
Tue Jan 30 19:49:02 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkrange.c: Patch from Kipp Hickman to make the event
	handlers in gtkrange.c return the proper values (TRUE == handled)
	(#10316).

	This is just the tip of the iceberg, but gtkrange.c is the
	most common place where the propagation is problematical,
	and also a place where it is almost certainly safe to change
	this in the stable branch.

	(You don't want right click popups on a range control or anything...)

Tue Jan 30 19:12:52 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwindow.c (gtk_window_unmap): Call gdk_window_withdraw
	rather than gdk_window_hide; this makes things work
	correctly if the window is programmatically hidden while
	iconified. [ Backport from HEAD, hope, hope it doesn't break
	anything since it fixes a bunch of stuff. ] (#14082)
2001-01-31 00:52:37 +00:00
Owen Taylor
61a7c6f865 We need to clear the focus area on focus out, even if a background pixmap
Tue Jan 30 18:57:59 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktext.c (clear_focus_area): We need to clear the focus
	area on focus out, even if a background pixmap isn't set.
	(#13941)
2001-01-31 00:00:54 +00:00
Owen Taylor
ab36b33b76 Handle the case where bg_pixmap[i] == GDK_PARENT_RELATIVE.
Tue Jan 30 18:31:23 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkstyle.c (gtk_style_detach): Handle the case where
	bg_pixmap[i] == GDK_PARENT_RELATIVE.
2001-01-30 23:33:04 +00:00
Owen Taylor
20d6a5c3a5 Fix from Sean Cunningham to deal with setting the shape properly when
Tue Jan 30 18:24:10 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtknotebook.c (gtk_notebook_set_shape): Fix from Sean Cunningham
	to deal with setting the shape properly when scrolling arrows are
	turned on, but not visible because there is sufficient space.
	(#13432)
2001-01-30 23:27:58 +00:00
Owen Taylor
7431b6b3d6 For menu items with submenus, destroy the item along with the submenu.
Tue Jan 30 16:39:25 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkitemfactory.c (gtk_item_factory_delete_item): For menu
	items with submenus, destroy the item along with the submenu.
	(#7841, Brian Masney(?)) Also, handle paths of the form '<foo>/abcd...'
	properly.

	* gtk/testgtk.c (menu_items): Add a dummy branch that we delete
	later.
2001-01-30 21:44:48 +00:00
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
Szabolcs Ban
f2d6ff088b Fixed Hungarian translation 2001-01-25 09:40:44 +00:00
Pablo Saratxaga
ad3a3f4897 updated Azeri file 2001-01-06 22:13:44 +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
Christian Meyer
80383a2b45 Small fix for German translation. 2000-12-22 20:32:36 +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
Pablo Saratxaga
2884306517 Fixed charset= line 2000-12-06 15:58:52 +00:00
Pablo Saratxaga
ab08eed58f Added Azeri translation file 2000-12-06 15:46:37 +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
95292e412b [ Backport from 1.3.x ]
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.
2000-11-30 02:50:07 +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
Pablo Saratxaga
857a653824 updated Walloon file 2000-11-25 14:46:36 +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
Richard Hult
015eabfa60 Fixed a stupidly broken Swedish translation. 2000-11-06 07:57:54 +00:00
Pablo Saratxaga
a7db15b98e Added azeri file 2000-11-03 22:41:14 +00:00