Commit Graph

2266 Commits

Author SHA1 Message Date
Fatih Demir
063048efbf Hmm 2001-03-02 18:40:45 +00:00
Fatih Demir
288466d601 Added tr ... 2001-03-02 18:36:42 +00:00
Fatih Demir
5452736fea Added Turkish translation 2001-03-02 18:32:24 +00:00
Andraz Tori
5c168016eb Updated Slovenian translation 2001-03-01 23:03:13 +00:00
Christian Rose
1d95034b88 Updated Swedish translation. 2001-03-01 10:51:56 +00:00
Owen Taylor
97e83dbccb Never make harmless warning fixes! :-(
Thu Mar  1 04:35:51 2001  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkwidget.c (gtk_widget_class_init): Never make harmless
        warning fixes! :-(
2001-03-01 09:40:38 +00:00
Christophe Merlet
30e80df2f7 Updated French translation. 2001-03-01 09:09:01 +00:00
Owen Taylor
ea0c710884 Fix the .in files, add note about --with-native-locale.
Wed Feb 28 21:14:08 2001  Owen Taylor  <otaylor@redhat.com>

	* README.in INSTALL.in: Fix the .in files, add note
	about --with-native-locale.

	* */po/*: Line-number-creepage.
GTK_1_2_9PRE3
2001-03-01 02:19:26 +00:00
Owen Taylor
0654fc6064 Patch from ChiDeok Hwang to move call to sync_selection() up a few lines
Wed Feb 28 19:10:43 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkclist.c (real_remove_row): Patch from ChiDeok
	Hwang to move call to sync_selection() up a few lines
	to before the row list is modified, to fix crash when
	removing rows in the undo_selection list.

	(Test case provided by Daniel Elstner:

        http://mail.gnome.org/archives/gtk-list/2001-February/msg00359.html)

Wed Feb 28 15:40:27 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkcalender.c gtk/gtkdnd.c gtk/gtkitemfactory.c gtk/gtklayout.c
	  gtk/gtkplug.c gtk/gtksocket.c gtk/gtktypeutils.c
	  gtk/gtkwidget.c genmarshal.pl: Fix implicit casts
	between void * and function pointers.

	* gtk/gtklayout.c: Remove cruft after #endif

	* gtk/gtkdnd.c: Include stdlib.h for abs.
2001-03-01 00:18:22 +00:00
Owen Taylor
51454e8ac6 Redo the focus stuff once more. Keep track of the focus status via an
Tue Feb 27 18:38:27 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwindow.c (gtk_window_map): Redo the focus stuff
	once more. Keep track of the focus status via an event
	filter, so we can keep track of whether the window
	or any child has the focus; something that requires
	fields from the XEvent not in the GdkEvent.

	Install this event filter in gtk_window_map() before mapping
	the window, on the guess that this is unlikely to be overriden
	without the overrider chaining up. (fingers crossed)
2001-02-27 23:41:09 +00:00
Owen Taylor
9cad1a8a54 fix messed up commit message from earlier 2001-02-27 09:42:41 +00:00
Owen Taylor
f9c3cfe49f Remove left-over debug-printf.
Tue Feb 27 04:14:21 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmain.c (gtk_propagate_event): Remove
	left-over debug-printf.

	* gtk/gtkdnd.c (gtk_drag_find_widget): Don't use
	new_allocation.x/new_allocation.y for coordinate,
	translation since they are clip, use the
	x_offset/y_offset variables we keep for the purpose instead.
2001-02-27 09:19:21 +00:00
Owen Taylor
ce06d6d635 When recursing, get the list of children and ref them all before walking
Tue Feb 27 02:29:20 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkdnd.c (gtk_drag_find_widget): When recursing,
	get the list of children and ref them all before walking
	through the list, to prevent problems when the widget
	hierarchy changes in ::drag_motion/drop handlers.

	* gtk/gtkmain.c (gtk_propagate_event): Only activate
	special key-press grab handling for widgets within
	GtkWindows. Otherwise, fall through to normal case.

	This prevents key events being sent twice to GtkInvisible
	widgets, which can cause all sorts of mischief.
2001-02-27 07:36:18 +00:00
Owen Taylor
b501a17c8b Add a configuration option --with-native-locale, that greatly speeds up
Tue Feb 27 01:29:34 2001  Owen Taylor  <otaylor@redhat.com>

	* configure.in acconfig.h gdk/gdkfont.c gdk/gdkim.c INSTALL: Add a
	configuration option --with-native-locale, that greatly speeds up
	wide-character/multibyte conversions by dropping the indirection
	through Xlib's property-conversion functions. Off by default due
	to lack of testing for portability, but it should, in general be a
	more correct way of doing things, and should also remove much of
	the speed hit that the recent change to the handling of 8-bit
	fonts may have introduced.
2001-02-27 06:46:08 +00:00
Owen Taylor
8875974d18 Update to describe submitting patches and bug reports to
Mon Feb 26 16:34:33 2001  Owen Taylor  <otaylor@redhat.com>

	* README: Update to describe submitting patches
	and bug reports to bugzilla.gnome.org.

Tue Feb 20 23:48:16 2001  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdkim.c,gdk/gdkprivate.h: Add private function
         _gdk_wcstombs_len() which takes a length.

	* gdk/gdkfont.c,gdk/gdkprivate.h,gdk/gdkdraw.c:
        Consistently handle calls to _wc() font for GDK_FONT_FONT
	routines by:

          a) for 8-bit fonts, converting to chars via wcstombs
              (Will make GtkLabel handle using GDK_FONT_FONT for
             non-iso-8859-1 a wee bit better, though GDK_FONT_FONTSET
             is still the only supported way to get correct i18n.
             #50834)

          b) for 16-bit fonts, assuming each wchar is a glyph
             index. (Broken, but no more broken than anything else)
2001-02-27 04:30:56 +00:00
Owen Taylor
46e0b468ed We can't maintain a flag in gtk_window_focus_in/out, because GtkPlug and
Mon Feb 26 21:36:11 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwindow.[ch] (gtk_window_focus_in/out_event): We can't
	maintain a flag in gtk_window_focus_in/out, because
	GtkPlug and cut-and-pastes of GtkPlug override these
	methods and don't chain up. So back out recent change
	adding such a flag, and instead recycle the hack
	GtkPlug uses of making GTK_WIDGET_HAS_FOCUS on the
	top level represent this information
2001-02-27 02:39:28 +00:00
Owen Taylor
a3cf1957cb Do the setting of tree->root_tree in parent_set rather than _map(), fixing
Fri Feb 23 15:06:48 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktree.c (gtk_tree_class_init): Do the setting
	of tree->root_tree in parent_set rather than _map(),
	fixing #50892 in a bit better manner.
2001-02-26 19:37:29 +00:00
Stano Visnovsky
f10c733cb9 Fixed spelling 2001-02-23 18:00:23 +00:00
Owen Taylor
90a565d677 Change to parent implementation instead of cut-and-paste that was out of
Thu Feb 22 20:50:08 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkplug.c (gtk_plug_set_focus): Change to parent
	implementation instead of cut-and-paste that was
	out of sync.

	* gtk/gtkwindow.[ch] (gtk_window_set_focus): Only send
	::focus_in_event when the toplevel window actually
	has focus on it. (Fixes #50857, Akira Higuchi)
2001-02-23 02:01:18 +00:00
Owen Taylor
d7a68f63be Grab on a offscreen GtkInvisible so that we can move handle boxes whose
Thu Feb 22 19:53:55 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Grab
	on a offscreen GtkInvisible so that we can move handle boxes
	whose parents are iconified or on another desktop. Also,
	make sure we don't reattach to such parents. (#1923)
2001-02-23 00:55:46 +00:00
Owen Taylor
478449f6cd Don't flip cursor. (#50934)
Thu Feb 22 17:07:58 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmenu.c (gtk_menu_popup): Don't flip cursor. (#50934)
2001-02-22 22:50:53 +00:00
Owen Taylor
de78784eb1 Update the current font from the contents of the entry. (#3123)
Thu Feb 22 16:45:17 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfontsel.c (gtk_font_selection_get_font[_name]):
	Update the current font from the contents of the entry.
	(#3123)
2001-02-22 22:02:24 +00:00
Jody Goldberg
abba4bdf73 Remove duplicate fwd decl for gtk_default_draw_shadow.
Tue Feb  2 11:22:33 2001  Jody Goldberg <jgoldberg@home.com>

	* gtk/gtkstyle.c : Remove duplicate fwd decl for
	gtk_default_draw_shadow.

Tue Feb 20 11:40:58 2001  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkimage.c (gdk_image_new): Remove excess
	warning, make warnings more verbose, treat a error
	in shmat as permanent, and don't try again.
	(#51163, Ed Randall.)

Mon Feb 19 20:46:21 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkentry.c (gtk_entry_key_press): Take key presses
	of GDK_Left/GDK_Right when there is a selection to mean
	"move the cursor to the start/end of the selection".
	(Inspired by #50492, Jay Cox, though the implementation
	is different for GTK+-1.2.)

Mon Feb 19 20:15:28 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkrange.c (gtk_range_timer_1st_time): Add an initial
	delay for the first click before starting to scroll.
	(based on #51026, gtk-enf-990512-0.patch, Eric Fisher)

	* gtk/gtktext.c: GtkText should have I-beam cursor.
	(based on gtk-enf-990513-1.patch, Eric Fisher.)

Mon Feb 19 18:39:21 2001  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkselection.c (gdk_string_to_compound_text,gdk_text_property_to_text_list):
	Robustify by stripping control characters not allowed in COMPOUND_TEXT
	out before passing to XmbTextpropertyToTextList(), and from the
	result of XmbTextListToTextProperty(). This is in the spirit
	of "Be lenient in what you receive, strict in what you generate."
	(Fixes #1704)
2001-02-22 20:38:15 +00:00
Andraz Tori
5a22518969 Updated sl translation 2001-02-20 23:57:39 +00:00
Owen Taylor
635105d142 Fix incorrect mask. (#51039, fix from Martin Maierhofer)
Mon Feb 19 14:20:36 2001  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkrgb.c (gdk_rgb_convert_555_br): Fix incorrect
	mask. (#51039, fix from Martin Maierhofer)

Fri Feb 16 20:09:42 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkctree.c (gtk_ctree_class_init): Add bindings
	for unshifted + and shifted = for non-us keyboards.
	Make <Control>+ and <Control>- work as well as
	<Control>KP_Plus, <Control>KP_Minus for recursive
	open/close.  (#2682, Ren Seindal)
2001-02-19 21:31:43 +00:00
Owen Taylor
5e6a0c969d Updated (applied gtk-pauls-990307-0.patch)
Sun Feb 18 18:06:11 2001  Owen Taylor  <otaylor@redhat.com>

	* nl.po:	Updated (applied gtk-pauls-990307-0.patch)
2001-02-18 23:06:54 +00:00
Andraz Tori
3883f5a879 Updated Slovenian translation 2001-02-17 14:50:31 +00:00
Owen Taylor
eea850a7c0 Unset the active menu item before deactivating the menu, so
Fri Feb 16 18:50:59 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmenushell.c (gtk_real_menu_shell_cancel): Unset
	the active menu item before deactivating the menu,
	so gtk_menu_popdown doesn't change the history. (#50964)
2001-02-17 00:10:31 +00:00
Owen Taylor
f8709339b5 draw lines with text_gc rather than black_gc. (Patch from Vlad Harchev
Fri Feb 16 15:55:22 2001  Owen Taylor  <otaylor@redhat.com>

	       * gtk/gtktreeitem.c (gtk_tree_item_draw_lines):
	       draw lines with text_gc rather than black_gc.
	(Patch from Vlad Harchev <hvv hippo ru>, #50926)
2001-02-16 23:35:04 +00:00
Owen Taylor
92b5545801 1.2.9pre1
Tue Feb 13 15:39:28 2001  Owen Taylor  <otaylor@redhat.com>

        * 1.2.9pre1

	* NEWS: Update.

        * docs/Makefile.am: Remove building of HTML for
	gdk.texi gtk.texi since it doesn't work.
GTK_1_2_9PRE1
2001-02-16 04:37:42 +00:00
Christopher R. Gabriel
9a0f08fd30 Updated italian translation 2001-02-15 05:11:15 +00:00
Stano Visnovsky
dd5f18bfba Updated Slovak translation 2001-02-14 11:41:18 +00:00
Simos Xenitellis
e75267a55d Minor fixes to Greek translation 2001-02-13 23:13:59 +00:00
Owen Taylor
8c9ce83511 Fix problems with characters < 256 in wide character locales. (Patch from
Tue Feb 13 13:56:58 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtktext.c (find_char_width): Fix problems with
	characters < 256 in wide character locales. (Patch
	from Yoichi Imai.)
2001-02-13 19:58:35 +00:00
Owen Taylor
ec7e8f971e Properly handle passive buttons at button creation time (#50686).
Tue Feb 13 00:58:49 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkclist.c: Properly handle passive buttons at
	button creation time (#50686).
2001-02-13 15:33:25 +00:00
Owen Taylor
91383ef28e Call gdk_colormap_sync() - fixes #50678.
Mon Feb 12 20:37:32 2001  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkrgb.c (gdk_rgb_try_colormap): Call gdk_colormap_sync() -
	fixes #50678.

	* gdk/gdk.h: Add missing prototype for gdk_colormap_sync().
2001-02-13 01:53:28 +00:00
Owen Taylor
c17f904633 Fix some cases of implicit casting between void * and function pointers.
Mon Feb 12 20:02:32 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkmain.c: Fix some cases of implicit casting between
	void * and function pointers.

	* configure.in gtk/gtkmain.c: Add checks for setuid/setgid,
	and refuse to initialize GTK+ if they fail.

	* configure.in (GTK_INTERFACE_AGE): Reset GTK_INTERFACE_AGE
	to zero.
2001-02-13 01:25:28 +00:00
Owen Taylor
58ea26507c [ Enabling patch for better looking theme engines ]
Mon Feb 12 15:55:26 2001  Owen Taylor  <otaylor@redhat.com>

	[ Enabling patch for better looking theme engines ]

	* gtk/gtkstyle.[ch]: Add new API functions for making
	better looking GTK+-1.2.x themes. THESE FUNCTIONS WILL
	NOT BE SUPPORTED IN THE FUTURE. ANY THEMES DEPENDING
	ON THESE FUNCTIONS MUST CHECK FOR GTK+-1.2.x WHERE
	x >= 1.2.9.

	The functions:

	 _gtk_style_set_prop_experimental()
	 _gtk_style_get_prop_experimental()

	are used to allow configuration of assorted geometry
	parameters.

	* gtk/gtkbutton.c: Make DEFAULT_SPACING configurable as
	GtkButton::default_spacing.

	* gtk/gtkcheckbutton.c gtk/gtkradiobutton.c: Make indicator_size
	and indicator_spacing configurable as GtkCheckButton::indicator_size,
	GtkCheckButton::indicator_spacing.

	* gtk/gtkcheckbutton.[ch]: Private function
	_gtk_check_button_get_props().

	* gtk/gtkcheckmenuitem.c (gtk_check_button_menu_item_set_show_toggle):
	Make a noop - turning this on is just a bad idea visually, and
	changing this from a program is just asking a bad idea.

	* gtk/gtk{h,v,}paned.c: Provide configuration parameters
	GtkPaned::handle_full_size, which, if true, will turn
	on GTK+-1.3.2 style full-size paned handles.
	GtkPaned::handle_width, which sets the gutter size for
	paned widgets. (If set, overrides setting via
	gtk_paned_set_gutter_size())

	* gtk/gtkpaned.[ch]: Add private functions
	_gtk_paned_is_handle_full_size(), _gtk_paned_get_handle_rect(),
	_gtk_paned_get_gutter_size().

	* gtk/gtkstyle.c (gtk_default_draw_box): Add handling for details
	"hpaned", "vpaned", used for drawing full-size grips on horizontal
	and vertical paned widgets. (In the style of GTK+-1.3.2)

	* gtk/gtkhscale.c gtk/gtkhscrollbar.c:

	* gtk/gtkoptionmenu.c: Add configurable parameters:

	  GtkOptionMenu::indicator_width
	  GtkOptionMenu::indicator_height
	  GtkOptionMenu::indicator_left_spacing
	  GtkOptionMenu::indicator_right_spacing
	  GtkOptionMenu::indicator_top_spacing
	  GtkOptionMenu::indicator_bottom_spacing

        To control where the indicator is drawn and how big it is.

	* gtk/gtkrange.[ch]: Add configurable parameters:

	  GtkRange::slider_width    - width of trough
	  GtkRange::trough_border   - space to reserve for trough border
	  GtkRange::stepper_size    - size of arrows
	  GtkRange::stepper_spacing - spacing between scrollbar and arrows

	and private accessor _gtk_range_get_props().

	* gtk/gtkwidget.c (gtk_widget_event): Rewrite a bit to
	quiet GCC.

	* gtk/gtkwidget.c (gtk_widget_propagate_state): Fix typo
	in last commit.
2001-02-12 22:40:03 +00:00
Owen Taylor
8005072a91 Don't allow insensitive widgets to have a grab.
Mon Feb  5 12:47:09 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkwidget.c (gtk_widget_propagate_state)
	  gtk/gtkmain.c (gtk_grab_add): Don't allow insensitive widgets to
	have a grab.
2001-02-12 20:30:03 +00:00
Gustavo Maciel Dias Vieira
e6038b6b2e Updated Brazilian Portuguese translation.
2001-02-12  Gustavo Maciel Dias Vieira  <gdvieira@zaz.com.br>

* pt_BR.po: Updated Brazilian Portuguese translation.
2001-02-12 12:26:42 +00:00
Gediminas Paulauskas
3a5a34e651 Small corrections in Lithuanian translation. 2001-02-12 01:47:22 +00:00
Ian Peters
ded7626eeb use the font->ascent and ->descent to calculate the requisition height,
* gtk/gtkprogressbar.c (gtk_progress_bar_size_request): use the
font->ascent and ->descent to calculate the requisition height,
rather than the gdk_text_height
(gtk_progress_bar_paint): use the font->ascent instead of the
gdk_text_height when calculating the vertical offset of the text
label on the progress bar.  This fixes the baseline of the font on
the widget.
2001-02-11 03:58:55 +00:00
Kjartan Maraas
9f8ce57295 Updated translation. Updated translation.
2001-02-08  Kjartan Maraas  <kmaraas@gnome.org>

	* no.po: Updated translation.
	* nn.po: Updated translation.
2001-02-08 09:53:45 +00:00
Nam SungHyun
04d5567bbf 1.2.9 2001-02-08 02:44:35 +00:00
Christophe Merlet
39c90da92f Updated French translation. 2001-02-05 16:44:49 +00:00
Owen Taylor
4205ca4ff5 Surround additional regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
Fri Feb  2 19:21:23 2001  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkwindow.c (gdk_propagate_shapes): Surround additional
	regions with HAVE_SHAPE_EXT. (#50511, Eric Ding)
2001-02-03 00:25:57 +00:00
Owen Taylor
d83929a297 Remove definition of _XOPEN_SOURCE, since it breaks things on BSD. If you
Fri Feb  2 18:31:54 2001  Owen Taylor  <otaylor@redhat.com>

	* gdk/gdkimage.c: Remove definition of _XOPEN_SOURCE, since
	it breaks things on BSD. If you want to compile GTK+ with
	-ansi -pedantic, you should supply CPP_FLAGS=_XOPEN_SOURCE
	when configuring, since GTK+ simply can't be "pure ANSI"
	in the header files it uses. (#8170, Greg Hudson)

	* gdk/gdkrgb.c (gdk_rgb_select_conv): Exit with an informative
	warning message if no converter can be found.
2001-02-02 23:37:19 +00:00
Owen Taylor
73c002cae4 Fix problem with passing signed chars to isupper() / tolower().
Fri Feb  2 15:09:51 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/fnmatch.c (FOLD): Fix problem with passing signed
	chars to isupper() / tolower().

	* examples/packer/pack.c: Add GINT_TO_POINTER, GPOINTER_TO_INT
	to clear up 64-bit warnings. (#567)
2001-02-02 20:25:13 +00:00
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