Commit Graph

947 Commits

Author SHA1 Message Date
Owen Taylor
3bd19e15ea Added cs to ALL_LINGUAS.
Sat Jan  9 17:36:20 1999  Owen Taylor  <otaylor@redhat.com>

	* configure.in (ALL_LINGUAS): Added cs to ALL_LINGUAS.

Sat Jan  9 17:27:49 1999  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfilesel.c (gtk_file_selection_populate):
	Mark another string for internationalization.
	[ Stanislav Brabec <utx@k332.feld.cvut.cz> ]
1999-01-09 22:34:28 +00:00
Owen Taylor
a40fd787da Set name "gtk-tooltips" on tip window so that a style can be set for
Sat Jan  9 14:02:08 1999  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktooltips.c (gtk_tooltips_force_window): Set
	name "gtk-tooltips" on tip window so that a style
	can be set for tooltips.
1999-01-09 19:02:06 +00:00
Owen Taylor
95843529d1 Fixed some list-manipulation breakage.
Fri Jan  8 19:00:17 1999  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkdnd.c (gdk_window_cache_filter): Fixed
	some list-manipulation breakage.

	* gdk/gdkdnd.c (gdk_window_cache_destroy): Free
	window cache structure.

	* gtk/gtkdnd.c (gtk_drag_set_icon_pixmap): Set an
	event mask on the drag window so clicking on it
	doesn't pop up root menus, etc.

	* gtk/gtkdnd.c (gtk_drag_button_release_cb): Remove
	signal handlers at button release.
1999-01-09 00:21:37 +00:00
Lars Hamann
b56693d114 call gtk_spin_button_update before returning a value
Fri Jan  8 00:42:00 1999  Lars Hamann  <lars@gtk.org>

	* gtk/gtkspinbutton.c (gtk_spin_button_get_value_as_int)
	(gtk_spin_button_get_value_as_float): call gtk_spin_button_update
	before returning a value

	* gtk/gtkclist.c (gtk_clist_motion): don't allow 'drag selections'
	if clist is a drag source.
	(gtk_clist_drag_begin): remove pointer grabs, end ongoing selections.

	* gtk/gtkctree.c (remove_grab): copy of clist function.
	(gtk_ctree_drag_begin): let clists drag_begin method set the
	source info struct.
1999-01-08 00:21:36 +00:00
Owen Taylor
41604dd844 Fixes to drawing the background of the bin window so that clearing and
Thu Jan  7 19:10:21 1999  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkviewport.c (gtk_viewport_style_set): Fixes
	to drawing the background of the bin window
	so that clearing and redrawing of child
	widgets work properly.

	* gtk/gtkwidget.c (gtk_widget_idle_draw): Juggle around
	data so that if somebody triggers more redraw queuing
	from a expose_event handler, it doesn't confuse the
	heck out of GTK+. (But is highly liable to cause
	an infinite loop...)
1999-01-08 00:12:43 +00:00
Owen Taylor
bedab705f2 Fix some more memory leaks.
Thu Jan  7 12:31:41 1999  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkselection.c (gtk_target_list_unref): Fix some
	more memory leaks.
1999-01-07 20:17:15 +00:00
Lars Hamann
f28c909c58 fix for dnd bug reported by Bertrand Guiheneuf. Don't return FALSE if
Wed Jan  6 23:14:19 1999  Lars Hamann  <lars@gtk.org>

	* gtk/gtkctree.c (gtk_ctree_drag_motion): fix for dnd bug reported
	by Bertrand Guiheneuf. Don't return FALSE if source widget != dest.
	widget.
1999-01-06 22:26:03 +00:00
Tristan Tarrant
216d83587f Added Italian texts 1999-01-06 09:09:04 +00:00
George Lebl
234d762ec3 free the event that was returned to us by gtk_get_current_event
Tue Jan 05 21:18:00 1999  George Lebl  <jirka@5z.com>

        * gtk/gtkmenu.c,gtk/gtkmenuitem.c,gtk/gtkeditable.c: free the
          event that was returned to us by gtk_get_current_event
1999-01-06 05:19:15 +00:00
Owen Taylor
0a411980ef Push GdkRGB's visual and colormap around the color selection dialog so
Tue Jan  5 19:01:18 1999  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkcolorsel.c (gtk_color_selection_dialog_init): Push
	GdkRGB's visual and colormap around the color selection
	dialog so that the window and the previews have the
	same colormap. If an app adds things to the colorsel
	dialog, it will have to take care of them itself.
1999-01-06 00:41:04 +00:00
Owen Taylor
5126b13c0a When redrawing the under-cursor character, don't redraw the terminating
Tue Jan  5 11:51:32 1999  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
	When redrawing the under-cursor character, don't
	redraw the terminating NULL.
	[ From: dov@imagic.weizmann.ac.il (Dov Grobgeld) ]
1999-01-05 23:46:49 +00:00
CST 1999 Shawn T. Amundson
c20ce75179 Released GTK+ 1.1.12
Mon Jan  4 03:45:42 CST 1999 Shawn T. Amundson <amundson@gtk.org>

        * Released GTK+ 1.1.12

        * INSTALL:
          NEWS:
          README:
          configure.in:
          gtk+.spec:
          docs/gtk-config.1:
          gtk/gtkfeatures.h.in: version=1.1.12
1999-01-04 11:04:11 +00:00
Nam SungHyun
37acae8845 Added 'ko'. Added Korean translation.
* configure.in (ALL_LINGUAS): Added 'ko'.
* po/ko.po: Added Korean translation.
1999-01-04 03:33:35 +00:00
Lars Hamann
73c4ee3a6c fixed auto_resize bug
Sun Jan  3 17:41:22 1999  Lars Hamann  <lars@gtk.org>

	* gtk/gtkctree.c (real_tree_expand): fixed auto_resize bug
1999-01-03 17:32:43 +00:00
Tim Janik
e573567b99 make this G_PRIORITY_DEFAULT.
Sat Jan  2 03:54:30 1999  Tim Janik  <timj@gtk.org>

        * gdk/gdk.h (GDK_PRIORITY_EVENTS): make this G_PRIORITY_DEFAULT.

        * gdk/gdkevents.c (gdk_events_init): add the source and the poll fd with
        a priority of GDK_PRIORITY_EVENTS.
1999-01-02 22:19:15 +00:00
Jeff Garzik
d6890b721d Removed features.h test.
* configure.in, config.h.in, gdk/gdkimage.c:
        Removed features.h test.

        * gdk/gdkdnd.c:
        Guard public functions against NULL pointer derefs.
1999-01-02 07:32:22 +00:00
Manish Singh
a6da2cf948 gdk/gdk.c gdk/gdkinputnone.h casts to get rid of const warnings
* gdk/gdk.c
* gdk/gdkinputnone.h
* gtk/gtkruler.c: casts to get rid of const warnings

* gtk/Makefile.am: fix gtktypebuiltins.h dependencies, and do a
cmp so people don't whine about rebuilds

* gtk/gtknotebook.c: use g_snprintf on translated strings, so we
don't get buffer overflows

* gtk/gtkrc.c: use g_strdup_printf instead of g_malloc/sprintf
Plug some memleaks.

-Yosh
1999-01-02 03:16:07 +00:00
Jeff Garzik
7433badf8e Check for features.h.
* configure.in, config.h.in:
        Check for features.h.

        * gdk/gdkevents.c (gdk_event_put, gdk_events_queue):
        Fixed bug in linked list append logic by replacing hand-coded
        logic with a call to g_list_append.  Bug found by tml.

        * gdk/gdkimage.c:
        'gcc -ansi -pedantic' on GNU/Linux spews warnings and errors
        in sys/ipc.h, including one specific admonishment to use
        _SVID_SOURCE or _XOPEN_SOURCE.  Manually defined the latter, and
        included features.h if present to obtain the necessary
        side-effects.

        * gtk/gtkclist.c, gtk/gtkeditable.c:
        Eliminates comma-after-final-element warnings.

        * gtk/gtkfontsel.c (gtk_font_selection_init):
        Fixed bug where an intl string was declared as _("x") in
        local var initializer.
1999-01-01 23:36:32 +00:00
Jeff Garzik
d9f5d8f255 updated w/ changed from last night 1998-12-31 15:09:17 +00:00
Miguel de Icaza
f2091ab7be Fix memory leak. gdk_event_put would make a copy of next_event, and
1998-12-30  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gtk/gtkmain.c (gtk_main_do_event): Fix memory leak.
	gdk_event_put would make a copy of next_event, and next_event was
	not being freed.
1998-12-31 04:43:36 +00:00
CST 1998 Shawn T. Amundson
c44d39c06e Released GTK+ 1.1.11
Wed Dec 30 18:39:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GTK+ 1.1.11

        * INSTALL:
          NEWS:
          README:
          configure.in:
          gtk+.spec:
          docs/gtk-config.1:
          gtk/gtkfeatures.h.in: version=1.1.11

Also fixed docs/Makefile.am so make distcheck works well now,
even on an SMP machine.

Do these .po files really have to be remade during a make dist?
1998-12-31 02:25:58 +00:00
Owen Taylor
a078311369 Fixed off-by-one error when computing length.
Tue Dec 29 16:06:55 1998 Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
	error when computing length.
1998-12-29 21:10:30 +00:00
Jeff Garzik
fc07d22a53 x Pull in string.h for various mem*() and str*() functions, in an
x
   Pull in string.h for various mem*() and str*() functions,
        in an autoconf-friendly way.
x
1998-12-24 19:39:00 +00:00
Jeff Garzik
553fa4309e removed unused var 64-bit cast point to const data Made const-correct.
* gdk/gdkfont.c: removed unused var
        * gdk/gdkim.c: 64-bit cast
        * gtk/gtkaccelgroup.c: point to const data
        * gtk/gtkdnd.[ch]: (gtk_drag_dest_set, gtk_drag_source_set):
          Made const-correct.
        * gtk/gtkfontsel.c: kill uninitialized var warning
        * gtk/gtkselection.[ch]: (gtk_target_list_new,
          gtk_target_list_add_table, gtk_selection_add_targets):
          Made const-correct.
        * gtk/testgtk.c: 64-bit cast
1998-12-24 17:47:02 +00:00
CST 1998 Shawn T. Amundson
9775547b4a Released GTK+ 1.1.10
Thu Dec 24 03:16:52 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GTK+ 1.1.10

        * INSTALL:
          NEWS:
          README:
          configure.in:
          gtk+.spec:
          docs/gtk-config.1:
          gtk/gtkfeatures.h.in: version=1.1.10

        * no.po: added translation by Kjartan Maraas <kmaraas@fib.hl.no>
1998-12-24 15:21:13 +00:00
Owen Taylor
b596355d0a Update to changelog, to cover fix that previously slipped in.
Wed Dec 23 20:31:40 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtklabel.c: Fix problem where empty labels were
	getting a requisition height of zero, and trailing
	newlines were being ignored.
1998-12-24 01:29:44 +00:00
Owen Taylor
c6cf882eee label->label should be the mb text _after_ removing the underlines, not
Wed Dec 23 13:58:14 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtklabel.c (gtk_label_parse_uline):
	label->label should be the mb text _after_ removing
	the underlines, not before.

	* gtk/gtkmenu.c: Reverted Elliot's tearoff-menu-item
	title hack. If it deserves being done, it deserves
	being done right.
1998-12-23 19:16:21 +00:00
Elliot Lee
fb833c477b */Makefile.am: Now passes 'make distcheck'. Now loops. I'm not sure what
*/Makefile.am: Now passes 'make distcheck'. Now loops. I'm not sure what
is up.

1998-12-23  Elliot Lee  <sopwith@redhat.com>

	* gtk/gtkmenu.c: Allow programmer to gtk_object_set_data(obj,
 	"GtkTearoffMenuItem_window_title", ..) on a GtkMenuItem and have
 	it be recognized. If we're getting the title out of the GtkLabel,
 	then remove all underscores.
1998-12-23 16:24:15 +00:00
Owen Taylor
08b22ddebf Request XmTRANFER_FAILURE on Motif drops not within a drop zone. I don't
Tue Dec 22 17:01:43 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkdnd.c (gtk_drag_dest_handle_event):
	Request XmTRANFER_FAILURE on Motif drops not within
	a drop zone. I don't know why this is necessary,
	but it is.

	* gdk/gdkdnd.c (gdk_drop_reply): Fixed error where
	Motif flag field in response was getting wrong
	values.
1998-12-22 22:00:43 +00:00
Owen Taylor
1f8fd8871b Return TRUE for button press events we handle. (Allows option menus in
Tue Dec 22 15:55:39 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkoptionmenu.c (gtk_option_menu_button_press):
	Return TRUE for button press events we handle.
	(Allows option menus in radio buttons to work...)
1998-12-22 20:55:30 +00:00
Owen Taylor
7f0156c2ea Optimization - when we've already found a widget, skip all checks for
Tue Dec 22 14:50:25 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkdnd.c (gtk_drag_find_widget): Optimization -
	when we've already found a widget, skip all checks
	for subsequent children.

	* gtk/gtkdnd.c (gtk_drag_find_widget): Checked for
	!MAPPED, not !VISIBLE, since a widget (like a notebook
	page), can be VISIBLE, but !REALIZED or !MAPPED.

	* gtk/gtkdnd.c (gtk_drag_find_widget): Use forall(),
	not foreach().
1998-12-22 20:06:44 +00:00
Lars Hamann
df7d275d17 fixed column resize bug
Mon Dec 21 22:01:49 1998  Lars Hamann  <lars@gtk.org>

	* gtk/gtkclist.c (gtk_clist_motion): fixed column resize bug
1998-12-21 21:09:37 +00:00
Tim Janik
af2c3bd16f export the priority at which events are processed.
Sun Dec 20 04:48:59 1998  Tim Janik  <timj@gtk.org>

        * gdk/gdk.h (GDK_PRIORITY_EVENTS): export the priority at which
        events are processed.

        * gtk/gtk[main|signal|container].[ch]: removed deprecated _interp
        variants: gtk_container_foreach_interp, gtk_idle_add_interp,
        gtk_timeout_add_interp, gtk_signal_connect_interp.
1998-12-20 05:47:28 +00:00
PST 1998 Shawn T. Amundson
cbf5479263 added translation by Tomas gren <stric@ing.umu.se>
Sat Dec 19 18:42:39 PST 1998 Shawn T. Amundson <amundson@gtk.org>

        * sv.po: added translation by Tomas gren <stric@ing.umu.se>
1998-12-20 02:48:52 +00:00
Tim Janik
5070b178e9 eek, fixed an embarrasing bug that caused this function to always return
Sat Dec 19 22:49:40 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtktypeutils.c (gtk_type_query): eek, fixed an embarrasing bug
        that caused this function to always return NULL (noticed by marius
        vollmer).
1998-12-20 01:24:40 +00:00
Owen Taylor
651e2f744f Don't add the gthread libs to GLIB_LIBS either, or -lgthread -lpthread
Sat Dec 19 17:28:30 1998  Owen Taylor  <otaylor@redhat.com>

	* configure.in: Don't add the gthread libs to
	GLIB_LIBS either, or -lgthread -lpthread will get
	pulled into all applications because of shlib deps.

	* gtk/gtkmain.h gtk/gtkwidget.c gtk/gtk gdk/gdk:
	Use GLIB's priority #define. Revise scale of
	priorities.
1998-12-19 22:27:03 +00:00
Manish Singh
5225ae6105 always run a g_main_iteration, even if there are no active main loops.
* gtk/gtkmain.c: always run a g_main_iteration, even if
there are no active main loops. This fixes the gimp splash
screen.

-Yosh
1998-12-19 11:47:58 +00:00
Tim Janik
8fc5066a69 removed return_if_fail (label->words != NULL) since that's a valid case
Sat Dec 19 05:37:51 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtklabel.c (gtk_label_expose): removed return_if_fail
        (label->words != NULL) since that's a valid case when the label
        is empty, or just default constructed.
        fixed indentation prototype arguments and braces in some places.
        also, pointer comparisions and initializations are done with NULL
        not 0, there's a reason GLib defines NULL.

        * gdk/gdkevents.c (gdk_events_pending): return (queued_events ||
        putback_events) so this again returns whether events are pending,
        not whether other sources like idles are pending.

        * gtk/gtkmain.c (gtk_main_iteration_do):
        (gtk_main_iteration): return whether the loop is done, not whether
        something got dispatch to restore the original behaviour (yosh: this
        fixes code like in GleSelector).
1998-12-19 05:15:15 +00:00
Manish Singh
ee173b486f s/(enter|leave)_button/$1/g, since pthreads.h no longer conflicts
-Yosh
1998-12-19 03:24:15 +00:00
Lars Hamann
2231b92bbb fixed GDK_2BUTTON_PRESS bug.
Sat Dec 19 01:56:13 1998  Lars Hamann  <lars@gtk.org>

	* gtk/gtkclist.c (gtk_clist_button_press): fixed GDK_2BUTTON_PRESS
 	bug.
1998-12-19 01:18:08 +00:00
Manish Singh
690fa02b0a add ja.po to ALL_LINGUAS
-Yosh
1998-12-19 00:07:36 +00:00
Owen Taylor
6704cf6e1a Marked plug window as destroyed before destroying the window.
Fri Dec 18 15:19:54 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtksocket.c (gtk_socket_filter_func): Marked
	plug window as destroyed before destroying the
	window.
1998-12-18 20:47:21 +00:00
Owen Taylor
8592d1c309 Set the usize on the tearoff window so when we reparent the window out,
Fri Dec 18 14:17:14 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmenu.c (gtk_menu_popup): Set the usize on the
	tearoff window so when we reparent the window out,
	the window doesn't shrink down.
1998-12-18 19:15:46 +00:00
Sebastian Wilhelmi
1a6d6e0647 do not export the glib flags for thread support to gtk-config.
1998-12-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: do not export the glib flags for thread support to
	gtk-config.
1998-12-18 10:01:21 +00:00
Tim Janik
d2dc06dae1 added gdk_flush() after g_main_run(), so we get the original behaviour
Fri Dec 18 01:32:59 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkmain.c (gtk_main): added gdk_flush() after g_main_run(), so we
        get the original behaviour back, i.e. the event queue needs to be flushed
        after a main loop has been quitted.
        (gtk_main): add/remove the current main loop to/from the main loop
        before/after init/quit functions have been exected to preserve the
        original gtk_main_quit() behaviour.

Thu Dec 17 23:48:29 1998  Tim Janik  <timj@gtk.org>

        * gdk/gdkevents.c (gdk_events_init): changed argument order in call
        to g_main_add_poll() to match recent glib changes.
1998-12-18 02:23:48 +00:00
Owen Taylor
11339ec5b3 Add @INTLLIBS@. gtk-scier-981116-0.patch Sean Cier
Thu Dec 17 20:33:28 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk-config.in: Add @INTLLIBS@.
	gtk-scier-981116-0.patch  Sean Cier <scier@PostHorizon.com>) ]

	* gtk/gtkcolorsel.c gtk/gtkfilesel.c gtk/gtkfontsel.c
	  gtk/gtkgamma.c gtk/gtkinputdialog.c
	  gtk/gtknotebook.c gtk/gtkrc.c gtk/gtkthemes.c
	  gtk/gtktipsquery.c:

	Applied parts of gtk-egger-981215-1 [ Daniel Egger
	<Daniel.Egger@t-online.de> ] marking additional strings for
	internationalization.

	* po/nl.po: Added Dutch translation from
	Paul Siegmann <pauls@euronet.nl>.
1998-12-18 01:32:33 +00:00
Owen Taylor
1bde7a5599 Remove the info tag from the context so if the source unexpectedly
Thu Dec 17 18:25:52 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkdnd.c (gtk_drag_drop_finished): Remove the
	info tag from the context so if the source unexpectedly
	responds in the future, we do nothing properly.

Thu Dec 17 18:24:41 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Handle
	the case where one side of the the pane is empty.

	* gtk/gtkfilesel.c (gtk_file_selection_init): Set
	dir_title before using it. (Pointed out by
	Lavoie Philippe <lavoie@zeus.genie.uottawa.ca>)
1998-12-17 23:35:22 +00:00
Owen Taylor
55ce42dad1 Use setlocale (LC_ALL, NULL), not (LC_ALL, "") to query current locale.
Thu Dec 17 11:00:48 1998  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkim.c (gdk_set_locale): Use setlocale (LC_ALL, NULL),
	not (LC_ALL, "") to query current locale.
	(Pointed out by	Ullrich Hafner <hafner@informatik.uni-wuerzburg.de>)
1998-12-17 16:13:20 +00:00
Owen Taylor
eba4c9a85e Free previous label->label_wc.
Thu Dec 17 10:53:20 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtklabel.c (gtk_label_set_text): Free
	previous label->label_wc.

	* gtk/testgtkrc: Leave font, not fontset commented
	in by default.
1998-12-17 15:51:15 +00:00
Sebastian Wilhelmi
06449bebe1 Define gdk_use_mb outside USE_XIM guard. Removed unnecessary USE_XIM guard
1998-12-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gdk/gdkim.c: Define gdk_use_mb outside USE_XIM guard. Removed
	unnecessary USE_XIM guard inside another. Made gdk_use_mb
	static. Compile gdk_set_locale also if not USE_XIM.
1998-12-17 09:15:45 +00:00
Shawn T. Amundson
2fa220504c Released GTK+ 1.1.9
Thu Dec 17 00:26:01 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GTK+ 1.1.9

        * INSTALL:
          NEWS:
          README:
          configure.in:
          gtk+.spec:
          gtk/gtkfeatures.h.in:
          docs/gtk-config.1: version=1.1.9
1998-12-17 06:49:15 +00:00
Manish Singh
a9575223a6 rm -rf intl breaks --disable-nls, put it back
* autogen.sh: rm -rf intl breaks --disable-nls, put it back

* gtkbutton.[ch]
* gtktogglebutton.c: s/(enter|leave)/$1_button/g.
Digital: 1 GTK+: 0 (for now)

-Yosh
1998-12-17 05:21:45 +00:00
CST 1998 Shawn T. Amundson
b0ecac9fa1 updated call to g_main_add_poll instead of g_main_poll_add
Wed Dec 16 22:38:22 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * gdk/gdkevents.c: updated call to g_main_add_poll
          instead of g_main_poll_add
1998-12-17 04:40:07 +00:00
Owen Taylor
47a65b7327 Remove unnecessary cast.
Wed Dec 16 23:32:05 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtklabel.c (gtk_label_expose): Remove
	unnecessary cast.
1998-12-17 04:31:49 +00:00
Owen Taylor
b729f6e30a Check for broken glibc 2.0 mb functions, and avoid them.
Wed Dec 16 22:50:52 1998  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdk.c gdk/gdkim.c: Check for broken glibc 2.0
	mb functions, and avoid them.
1998-12-17 04:20:29 +00:00
Owen Taylor
45cdd91a8c Don't call XPending() if we have putback events.
Wed Dec 16 16:57:55 1998  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkevents.c (gdk_events_queue): Don't
	call XPending() if we have putback events.
1998-12-16 21:58:54 +00:00
Owen Taylor
b4ba8e3b5d Do nothing on empty string, quietly.
Wed Dec 16 16:04:41 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtklabel.c (gtk_label_expose): Do nothing
	on empty string, quietly.
1998-12-16 21:06:49 +00:00
Owen Taylor
c1726375b1 Redraw the character under the cursor when removing the cursor.
Wed Dec 16 15:36:19 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
	Redraw the character under the cursor when removing
	the cursor.
1998-12-16 20:39:31 +00:00
Owen Taylor
fcfe7370d8 Move main thread lock back to GDK - we need it there for locking when
Wed Dec 16 13:06:17 1998  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
	thread lock back to GDK - we need it there for locking
	when translating events. Rename things appropriately.

Wed Dec 16 11:44:21 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkrange.c (gtk_range_expose): Fix a x/y typo.

CVS:
1998-12-16 20:09:30 +00:00
CST 1998 Shawn T. Amundson
0dcdac5828 Released GTK+ 1.1.8
Wed Dec 16 10:20:27 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GTK+ 1.1.8

        * ChangeLog:
          INSTALL:
          README:
          gtk+.spec:
          docs/gtk-config.1: version=1.1.8
1998-12-16 16:57:13 +00:00
Sebastian Wilhelmi
7f01a3d324 Define gdk_xim_ic only, if USE_XIM is defined.
1998-12-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gdk/gdkglobals.c: Define gdk_xim_ic only, if USE_XIM is defined.
1998-12-16 14:28:05 +00:00
Tim Janik
62347c40d9 urg, fixups 1998-12-16 06:05:46 +00:00
CST 1998 Shawn T. Amundson
0fcd82d16a warn if glib.m4 or gettext.m4 are not found in aclocal's directory.
Tue Dec 15 21:26:26 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * autogen.sh: warn if glib.m4 or gettext.m4 are not found
          in aclocal's directory.
1998-12-16 03:33:22 +00:00
Owen Taylor
7d7b43c244 Create buttons, not combos again.
Tue Dec 15 21:36:14 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/testgtk.c (create_layout): Create buttons,
	not combos again.
1998-12-16 02:37:41 +00:00
Joel Becker
8968861d79 Fixed gettextize/aclocal conflict in autogen.sh 1998-12-16 01:40:50 +00:00
Owen Taylor
1566d98867 Use base[NORMAL] instead of bg[PRELIGHT] so CLists now can be used in
Tue Dec 15 19:50:41 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkctree.c gtk/gtkclist.c gtk/testgtk.c: Use
	base[NORMAL] instead of bg[PRELIGHT] so CLists now can be
	used in detergent commercials.
1998-12-16 00:52:46 +00:00
Jeff Garzik
96501b3481 Remove --with-threads, unused GTK_THREAD_FLAGS 1998-12-16 00:07:33 +00:00
Elliot Lee
a8e00e2169 Use G_IO_ERR|G_IO_HUP|G_IO_NVAL as the mask for checking for
1998-12-15  Elliot Lee  <sopwith@bogus.cuc.ml.org>

	* gdk/gdkevents.c: Use G_IO_ERR|G_IO_HUP|G_IO_NVAL
	as the mask for checking for GDK_INPUT_EXCEPTION events.
1998-12-15 23:59:44 +00:00
Martin Baulig
3f1ffdacbb Make the gettext check for for libc5 systems.
1998-12-15  Martin Baulig  <martin@home-of-linux.org>

	* acinclude.m4: Make the gettext check for for libc5 systems.
1998-12-15 23:11:05 +00:00
Martin Baulig
cc7eba32a2 Not running gettextize fails on a fresh CVS checkout and we'll get a lot
1998-12-15  Martin Baulig  <martin@home-of-linux.org>

	* autogen.sh: Not running gettextize fails on a fresh CVS checkout
	and we'll get a lot of bug reports tomorrow, so I add it back.
1998-12-15 22:13:35 +00:00
Martin Baulig
7b105fea0a Rename AM_GNU_GETTEXT_GTK to AM_GTK_GNU_GETTEXT and AM_WITH_NLS_GTK to
1998-12-15  Martin Baulig  <martin@home-of-linux.org>

	* acinclude.m4: Rename AM_GNU_GETTEXT_GTK to AM_GTK_GNU_GETTEXT and
	AM_WITH_NLS_GTK to AM_GTK_WITH_NLS to avoid this ugly automake
	warnings.
1998-12-15 22:03:53 +00:00
Owen Taylor
dabb02d282 Provide a hacked version of the gettext macros that never use the included
Tue Dec 15 16:06:15 1998  Owen Taylor  <otaylor@redhat.com>

	* acinclude.m4: Provide a hacked version of the
	  gettext macros that never use the included gettext.

	* Makefile.am configure.in: Remove references
	  to intl/

	* autogen.sh: Don't run gettextize.
1998-12-15 21:08:52 +00:00
Owen Taylor
a3c1e86ffa Added gdk_text_extents_wc()
Tue Dec 15 14:30:35 1998  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdk.h gdk/gdkfonts.c: Added gdk_text_extents_wc()

        * Patch from Jonathan Blanford <jrb@redhat.com> to add line wrapping
	  to label. (Based on patch from Jeff Dairiki
	  <dairiki@mac-ceope.apl.washington.edu> gtk-dairiki-971208-0)

	- Adds new function gtk_label_set_line_wrap()
	- implement GTK_JUSTIFY_FILL.
	- rename gtk_label_set to gtk_label_set_text() add
	   gtk_label_set() to gtkcompat.h.

	* Use an internal wc representation in the label, so
	  that we handle underlining and line breaks correctly
	  for multi-byte strings.
1998-12-15 20:31:26 +00:00
Owen Taylor
7eec796cbd Added GTK_USER_DRAW flag.
Tue Dec 15 13:32:28 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.h: Added GTK_USER_DRAW flag.

	* gtk/gtkwindow.c: Honor GTK_USER_DRAW flag.

	* gtk/gtkdrawwindow.c gtk/Makefile.am: Removed
	GtkDrawWindow, which GTK_USER_DRAW obsoletes.
1998-12-15 18:48:19 +00:00
Owen Taylor
cceabe57ba Fixed up some warnings.
Tue Dec 15 11:37:05 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmain.c: Fixed up some warnings.

Tue Dec 15 10:32:01 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtk{h,v,}paned.{c,h}: Add new functions
	gtk_paned_set_position(),
	gtk_paned_pack1/2(). The latter take a
	shrink and resize parameters, that allows setting
	minimum sizes and getting 'relative' resizing.
1998-12-15 17:56:31 +00:00
Owen Taylor
1bf27c357d Keep separate putback_events and queued_events queues so that we get both
Tue Dec 15 10:26:23 1998  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkevents.c: Keep separate putback_events and
	queued_events queues so that we get both FIFO and
	preemptive behavior for	gdk_event_put().
1998-12-15 15:32:49 +00:00
Owen Taylor
9a9f4591a4 Removed unused variable, fixed minor memory leak.
Tue Dec 15 09:22:44 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkrc.c (gtk_rc_init): Removed unused
	variable, fixed minor memory leak.

	* gdk/gdk.c: Fixed another merge problem.
1998-12-15 14:23:46 +00:00
Owen Taylor
a2fc714adb Remove gdk_signal, which crept back in in last commit.
Tue Dec 15 08:53:38 1998  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdk.c (gdk_get_display): Remove gdk_signal,
        which crept back in in last commit.

gdk/gdkevents.c: File missed on last commit.

CVS
1998-12-15 13:54:20 +00:00
Owen Taylor
a0c84d6818 Commented out testthreads from the build process, since we won't have any
Tue Dec 15 01:38:53 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/Makefile.am: Commented out testthreads from
	the build process, since we won't have any idea
	how to create a thread.

	* configure.in (LIBS): use glib-config ... gthread
	so we always build a thread-compatible library.

        * gtk/gtkaccellabel.c gtk/gtkclist.c gtk/gtkcolorsel.c
	  gtk/gtkcombo.c gtk/gtkcontainer.c gtk/gtkentry.c
	  gtk/gtklist.c gtk/gtkmenuitem.c gtk/gtknotebook.c
	  gtk/gtkrange.c gtk/gtkselection.c gtk/gtkspinbutton.c
	  gtk/gtktext.c gtk/gtktooltips.c gtk/gtkwidget.c:

	Add GTK_THREADS_ENTER/LEAVE pairs around timeouts
	and idles to account for the fact that they are no
	longer called within the GTK+ lock.

	* gtk/gtkprivate.h: Added definitions for locking
	the main GTK+ mutex.

	* gtk/gtkmain.c: Re-implement the main loop
	in terms of the GLib main loop.

	* gdk/gdk.h gdk/gdkthreads.c gdk/Makefile.am: Removed threading
	functionality, as it seems better to subsume GDK within the
	GTK+ lock than vice-versa.

        * gdk/gdkevents.c: New file, containing event handling bits
	from gdk.c.

	* gdk/gdkevents.c: Implement event source for GDK
	events.

	* configure.in gdk/gdkevents.c: Removed attempts to
	subtract base_id, which were already non-functional.
1998-12-15 07:32:11 +00:00
Manish Singh
58475f05a5 acconfig.h removed IPC_RMID_DEFERRED_RELEASE check
* acconfig.h
* configure.in: removed IPC_RMID_DEFERRED_RELEASE check

* gdk/gdk.c: remove signal handlers, since we do an IPC_RMID
after XShmAttach, and nobody complained

-Yosh
1998-12-15 07:08:05 +00:00
Sven Neumann
d1edd7e40c Replaced the crappy de.po with a valid one.
(Bring me the haed of ...)


--Sven
1998-12-15 01:32:30 +00:00
Owen Taylor
698a11c606 Append locale-specific suffixes to default rc file names, and look these
Mon Dec 14 16:10:05 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkrc.c (gtk_rc_init): Append locale-specific
	suffixes to default rc file names, and look these
	up in addition to the base filename, to facilitate
	having the correct fontset per-locale.

	move $(sysconfdir)/gtkrc to $(sysconfdir)/gtk/gtkrc

	* gtk/gtkitemfactory.[ch] (gtk_item_factory_set_translate_func):
	New function to set a function to translate menu paths.

	* gtk/gtkrc.c (gtk_rc_add_initial_default_files): Free
	results of g_strsplit().
1998-12-14 23:26:12 +00:00
Nuno Ferreira
c46265c82c Added Portuguese translation.
* Added Portuguese translation.
1998-12-14 23:21:27 +00:00
Stefan Jeske
c242e9e36c Only call gtk_spin_button_update if the spinbutton is editable.
Mon Dec 14 20:04:31 1998  Stefan Jeske  <stefan@gtk.org>

	* gtk/gtkspinbutton.c: Only call gtk_spin_button_update if
 	the spinbutton is editable.
1998-12-14 19:13:58 +00:00
Owen Taylor
7facb75c85 Added gettext-10.35
Mon Dec 14 12:24:13 1998  Owen Taylor  <otaylor@redhat.com>

	* HACKING: Added gettext-10.35

	* autogen.sh: Run gettextize.

Wed Dec  9 16:29:06 1998  Owen Taylor  <otaylor@redhat.com>

        Applied gtk-egger-981010-[12]
	[ Daniel.Egger@t-online.de (Daniel Egger) ]

	* gtk/gtkintl.h: New file - defines for localization.

	* gtk/gtkfilesel.c gtk/gtkinputdialog.c: Mark strings
	for internationalization.

	* gtk/gtkmain.c: call bindtextdomain

	* po/ - directory for translations. Initially includes
	German translation.
1998-12-14 17:39:58 +00:00
Tim Janik
edc1476865 made GtkWidget::grab_focus a RUN_LAST and RUN_ACTION signal. moved stuff
Mon Dec 14 02:42:11 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkwidget.c: made GtkWidget::grab_focus a RUN_LAST and
        RUN_ACTION signal. moved stuff from gtk_widget_grab_focus() into
        gtk_widget_real_grab_focus() so a signal is always emitted
        if the focus is grabbed on a widget.
1998-12-14 01:59:43 +00:00
Tim Janik
7ea8bb92a6 fixed submenu popup timeouts, we decide whether or not to delay the
Mon Dec 14 02:13:01 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkmenuitem.c: fixed submenu popup timeouts, we decide whether or
        not to delay the submenu popup from a menu item deselection time stamp.
        the code looks even more hackish than before, but in practice "feels"
        very well.
1998-12-14 01:35:33 +00:00
Federico Mena Quintero
3441c3f2c4 Added a "grab_focus" signal for widgets. When the signal is emitted, the
1998-12-13  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gtk/gtkwidget.h (struct _GtkWidgetClass): Added a "grab_focus"
	signal for widgets.  When the signal is emitted, the widget will
	grab the focus.  This is needed to let the user press an
	accelerator key in a dialog box and have the corresponding widget
	be focused.

	* gtk/gtkwidget.c (gtk_widget_class_init): Create the "grab_focus"
	signal.  The default handler is simply gtk_widget_grab_focus().
1998-12-14 01:32:24 +00:00
GMT 1998 Tony Gale
113448e030 Update the following sections to the current API: - Container Widgets -
Sun Dec 13 22:15:48 GMT 1998  Tony Gale  <gale@gtk.org>

        * docs/gtk_tut.sgml: Update the following sections to the
          current API:
            - Container Widgets
            - CList Widget
            - List Widget
            - Tree Widget
1998-12-13 22:25:07 +00:00
Tim Janik
6d6d3a59b8 made GtkMenuItem::activate a GTK_RUN_ACTION signal.
Sat Dec 12 19:11:35 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkmenuitem.c: made GtkMenuItem::activate a GTK_RUN_ACTION signal.

        * gtk/gtkbutton.c: made GtkButton::clicked a GTK_RUN_ACTION signal.

        * gtk/gtkfeatures.h.in: define GTK_HAVE_FEATURES_1_1_8.
1998-12-13 00:13:39 +00:00
Owen Taylor
07f0382368 Mark child->window as destroyed so we don't destroy it again.
Sat Dec 12 17:46:55 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtklayout.c (gtk_layout_unrealize): Mark
	child->window as destroyed so we don't destroy
	it again.
1998-12-12 22:49:38 +00:00
Owen Taylor
823b4d43a1 Corrections to computation of extents of text from a font set. (from
Sat Dec 12 17:18:32 1998  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkfont.c (gdk_text_extents): Corrections
        to computation of extents of text from a font set.
        (from Chi-Deok Hwang <cdhwang@sr.hei.co.kr>)
         and Akira Higuchi <a-higuti@math.sci.hokudai.ac.jp>)
1998-12-12 22:21:48 +00:00
Owen Taylor
11a8051179 Added "style_set" handlers.
Fri Dec 11 08:59:12 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtklistitem.c (gtk_list_item_style_set):
	* gtk/gtklist.c     (gtk_list_style_set):
	Added "style_set" handlers.
1998-12-11 14:00:09 +00:00
Owen Taylor
84b2d43d95 Add in a "style_set" handler so that the background of the clist changes
Fri Dec 11 05:49:30 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
	handler so that the background of the clist changes
	with the theme.
1998-12-11 10:52:30 +00:00
CST 1998 Shawn T. Amundson
353a7158ed Released GTK+ 1.1.7
Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * Released GTK+ 1.1.7

        * INSTALL:
          NEWS:
          README:
          configure.in:
          gtk+.spec:
          gtk/gtkfeatures.h.in:
          docs/gtk-config.1: Version to 1.1.7
1998-12-11 06:12:24 +00:00
Manish Singh
6af277b502 avoid void pointer math
* gtk/gtkclist.c: avoid void pointer math

* gtk/gtkhscale.c
* gtk/gtkhscrollbar.c
* gtk/gtkvscale.c
* gtk/gtkvscrollbar.c: removed trailing , from enums

* gtk/gtksignal.c: can't use enums as a bitfield type, use guint

* gtk/testgtk.c: removed C++ comment added by owenpoo

-Yosh
1998-12-11 05:52:42 +00:00
Owen Taylor
939c818395 Added gtk_drag_source_unset()
Thu Dec 10 21:48:34 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkdnd.[ch]: Added gtk_drag_source_unset()
1998-12-11 02:48:40 +00:00
Owen Taylor
ba17081caa Use gdk_window_get_origin() instead of gdk_window_get_position, because
Thu Dec 10 20:42:22 1998  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use
	gdk_window_get_origin() instead of gdk_window_get_position,
	because get_position is unreliable for plugs.

	This is a bad hack, maybe we need GDK_WINDOW_PLUG?
1998-12-11 01:44:12 +00:00
GMT 1998 Tony Gale
3821880398 - re-write the GtkProgressBar section to the 1.1 API. - add an Appendix
Thu Dec 10 17:58:49 GMT 1998  Tony Gale  <gale@gtk.org>

        * docs/gtk_tut.sgml:
          - re-write the GtkProgressBar section to the 1.1 API.
          - add an Appendix listing all the signals
            (apologies to TimJ for taking so long in using his hard work
             in automating the extraction - thanx Tim).
        * examples/*: bring them all upto the tutorial versions
1998-12-10 17:31:04 +00:00
Jeff Garzik
600ef4e7d1 use g_snprintf, eliminate need for string.h include string.h, for strlen
* gtk/testdnd.c: use g_snprintf, eliminate need for string.h
        * gtk/testrgb.c: include string.h, for strlen
1998-12-10 06:18:32 +00:00