Commit Graph

6456 Commits

Author SHA1 Message Date
Tor Lillqvist
b4ee5eb756 Use the signed GET_X_LPARAM() and GET_Y_LPARAM() to extract x and y
2003-03-14  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkevents-win32.c: Use the signed GET_X_LPARAM() and
	GET_Y_LPARAM() to extract x and y coordinates from an LPARAM or
	DWORD, and not the unsigned HIWORD() and LOWORD(). Systems with
	multiple monitors can have negative coordinates on some of the
	monitors. (partial fix for #99496, Arnaud Charlet)
2003-03-14 23:53:44 +00:00
Sven Neumann
abb203785f removed redundant calls to g_object_notify().
2003-03-13  Sven Neumann  <sven@gimp.org>

	* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
	removed redundant calls to g_object_notify().
	(gtk_cell_renderer_pixbuf_get_size): removed redundant casts, see
	bug #108236.

	* gtk/gtktextiter.c (_gtk_text_iter_get_segment_char)
	(_gtk_text_iter_get_segment_byte): return 0, not NULL (these
	functions return an integer value).
2003-03-13 12:26:31 +00:00
Tor Lillqvist
1c874acf8e On WM_MOUSEMOVE, the test whether we have actually moved (and thus
2003-03-13  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkevents-win32.c (gdk_event_translate): On
	WM_MOUSEMOVE, the test whether we have actually moved (and thus
	shouldn't generate an GDK event) moved after the call to
	propagate() and translate_mouse_coords(). Otherwise we were
	testing wrong values. (#108115, Allin Cottrell)
	(gdk_event_translate): On WM_?BUTTONUP, set current_{x,y} the same
	way as in WM_?BUTTONDOWN and WM_MOUSEMOVE.
2003-03-13 01:42:31 +00:00
Tor Lillqvist
22d5e6810a if a grab cursor is used, must copy the HCURSOR with CopyCursor(), as it
2003-03-13  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): if a grab cursor
	is used, must copy the HCURSOR with CopyCursor(), as it is OK to
	destroy the GdkCursor after calling gdk_pointer_grab(). Set the
	cursor right away with SetCursor(), as we won't get any
	WM_SETCURSOR messages while the mouse is captured.
	(gdk_display_pointer_ungrab): Correspondingly, destroy the copy
	with DestroyCursor() when no longer used. (#108114, Allin Cottrell)

	* gdk/win32/gdkevents-win32.c (gdk_event_translate): On
	WM_SYSCHAR, return FALSE from the window procedure to prevent the
	DefWindowProc from being called. Otherwise Windows would beep,
	thinking you are tring to access a (nonexistent) menu when you
	press Alt-something. Don't do this for Alt-Space,
	though. (#107454, Martyn Russell)

	* gdk/win32/gdkcursor-win32.c: Minor spacing and debug print fixes.
2003-03-13 00:52:32 +00:00
Matthias Clasen
0f05a797f7 Calculate LineWidth for 16bpp from width, like for the other depths.
2003-03-11  Matthias Clasen  <maclas@gmx.de>

	* io-ico.c (DecodeHeader): Calculate LineWidth for 16bpp from
	width, like for the other depths.  (noticed by Marijn Ros)
2003-03-11 23:02:23 +00:00
Yuri Syrota
c16d0688db Updated Ukrainian translation 2003-03-10 15:53:22 +00:00
Tor Lillqvist
fe57bdd25b Don't try to compensate for LineTo() not drawing the end pixel. It causes
2003-03-09  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkdrawable-win32.c (draw_segments): Don't try to
	compensate for LineTo() not drawing the end pixel. It causes more
	harm than benefits, see bug #81895.
2003-03-09 16:13:55 +00:00
Matthias Clasen
0b4b76ccef Bug #107664 continued:
2003-03-08  Matthias Clasen  <maclas@gmx.de>

	Bug #107664 continued:

	* gdk/x11/gdkinputprivate.h:
	* gdk/x11/gdkinput-none.c (_gdk_input_window_none_event): Remove.
	(_gdk_input_other_event): Return gboolean.
	* gdk/x11/gdkinput-xfree.c (_gdk_input_window_none_event): Remove.
	(_gdk_input_other_event): Return gboolean.
	* gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): Return gboolean.

	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Make return_val
	gboolean, remove pointless call to _gdk_input_window_none_event.

	* gdk/win32/gdkinput-win32.[hc] (_gdk_input_other_event): Return gboolean.
	(_gdk_input_window_none_event): Remove.

	* gtk/gtktextiter.c (_gtk_text_iter_get_indexable_segment):
	(_gtk_text_iter_get_any_segment):
	(_gtk_text_iter_get_segment_byte):
	(_gtk_text_iter_get_segment_char):
	(_gtk_text_iter_get_text_line):
	(_gtk_text_iter_get_btree): Fix 0/NULL confusion.
	* gdk/x11/gdkdnd-x11.c (motif_target_table_check): Return gint.
	* gdk/win32/gdkfont-win32.c (gdk_font_equal):
	* gdk/linux-fb/gdkwindow-fb.c (gdk_window_get_deskrelative_origin):
	(gdk_window_get_origin):
	* gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Fix 0/FALSE confusion.
2003-03-08 21:11:19 +00:00
Matthias Clasen
6308577b27 Trivial cleanups (bug #107664) 2003-03-08 20:49:58 +00:00
Sven Neumann
e4639db608 shut up CVS 2003-03-07 14:11:08 +00:00
Matthias Clasen
9a03f0a699 Return gboolean, not gint. (#107664, Morten Welinder)
2003-03-06  Matthias Clasen  <maclas@gmx.de>

	* gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint.
	(#107664, Morten Welinder)

	* gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin):
	* gdk/x11/gdkfont-x11.c (gdk_font_equal):
	* gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
	Fix TRUE/1 and FALSE/0 confusion.  (#107664, Morten Welinder)

	* io-gif.c (gif_read): Fix 0/FALSE confusion (#107664, Morten Welinder)
2003-03-06 20:17:56 +00:00
Matthias Clasen
3c0467684a Fix NULL/FALSE confusion (#107648, Morten Welinder)
2003-03-06  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktextmark.c (gtk_text_mark_get_buffer):
	* gtk/gtkeditable.c (gtk_editable_get_chars):
	* gtk/gtkctree.c (gtk_ctree_find_node_ptr):
	* demos/gtk-demo/main.c (demo_find_file): Fix NULL/FALSE confusion
	(#107648, Morten Welinder)
2003-03-06 19:55:52 +00:00
Metin Amiroff
bac86f2f41 minor changes on Azerbaijani translation.
2003-03-06  Metin Amiroff  <metin@karegen.com>

	* az.po: minor changes on Azerbaijani translation.
2003-03-06 19:26:44 +00:00
Tor Lillqvist
1a887b84e1 Add a bunch of missing entries. Noticed by Cedric Gustin.
2003-03-02  Tor Lillqvist  <tml@iki.fi>

	* gtk/gtk.def: Add a bunch of missing entries. Noticed by Cedric
	Gustin.
2003-03-02 20:35:31 +00:00
Tor Lillqvist
1a3e754aee Add a bunch of missing entries. Noticed by Cedric Gustin.
2003-03-02  Tor Lillqvist  <tml@iki.fi>

	* gdk/gdk.def: Add a bunch of missing entries. Noticed by Cedric
	Gustin.
2003-03-02 19:44:48 +00:00
Yuri Syrota
8193e914cd Updated Ukrainian translation 2003-02-28 20:12:27 +00:00
Yuri Syrota
101169bbba Updated Ukrainian translation 2003-02-28 19:58:44 +00:00
Yuri Syrota
1f6aa5cea0 Updated Ukrainian translation 2003-02-28 19:09:36 +00:00
Yuri Syrota
e4ca8e5c7c Updated Ukrainian translation 2003-02-28 18:43:08 +00:00
Yuri Syrota
2c15776323 Updated Ukrainian translation 2003-02-28 18:31:57 +00:00
Yuri Syrota
c6b0234335 Updated Ukrainian translation 2003-02-28 17:01:23 +00:00
Yuri Syrota
dce4d33e87 Updated Ukrainian translation 2003-02-28 11:50:00 +00:00
Manish Singh
f939818579 reverted stray changes from last commit 2003-02-28 02:07:25 +00:00
Manish Singh
07a15aa307 demos/gtk-demo/main.c demos/gtk-demo/tree_store.c gdk/x11/gdkscreen-x11.c
Thu Feb 27 18:03:49 2003  Manish Singh  <yosh@gimp.org>

        * demos/gtk-demo/main.c
        * demos/gtk-demo/tree_store.c
        * gdk/x11/gdkscreen-x11.c
        * gtk/gtkcellrenderertoggle.c
        * gtk/gtkcolorsel.c
        * gtk/gtkdnd.c
        * gtk/gtkeditable.c
        * gtk/gtkentry.c
        * gtk/gtkmenu.c
        * gtk/gtkmenubar.c
        * gtk/gtkmenuitem.c
        * gtk/gtkmenushell.c
        * gtk/gtkrc.c
        * gtk/gtksettings.c
        * gtk/gtkstyle.c
        * gtk/gtktextbuffer.c
        * gtk/gtktextview.c
        * gtk/gtktreeviewcolumn.c
        * tests/testgtk.c
        * tests/testtext.c
        * tests/testtreeedit.c
        * tests/testtreefocus.c
        * tests/testtreeview.c: remove unnecessary G_OBJECT() casts.
2003-02-28 02:05:30 +00:00
Jonathan Blandford
77e7300a4e account for RTL code.
Tue Feb 25 21:55:17 2003  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
	code.
2003-02-26 19:46:20 +00:00
Miloslav Trmac
a4a82906b9 Update Czech translation 2003-02-26 01:19:01 +00:00
Christian Rose
8b0a09438f Updated Yiddish translation by Raphael Finkel <raphael@cs.uky.edu>.
2003-02-25  Christian Rose  <menthos@menthos.com>

	* yi.po: Updated Yiddish translation by
	Raphael Finkel <raphael@cs.uky.edu>.
2003-02-25 14:33:31 +00:00
Yuri Syrota
26dfa43f87 Updated Ukrainian translation 2003-02-25 09:54:36 +00:00
Sven Neumann
5fbdd480c0 fixed documentation.
2003-02-24  Sven Neumann  <sven@gimp.org>

        * gtk/gtkmain.c (gtk_get_default_language): fixed documentation.
2003-02-24 20:29:39 +00:00
Matthias Clasen
2f44686915 Fix self-referential documenation of gtk_tree_model_get_iter_root().
2003-02-24  Matthias Clasen  <maclas@gmx.de>

	* gtk/tmpl/gtktreemodel.sgml: Fix self-referential documenation of
	gtk_tree_model_get_iter_root().  (#106720, Keith Sharp)
2003-02-24 19:13:35 +00:00
Roozbeh Pournader
01059ca925 Updated Persian translation.
2003-02-24  Roozbeh Pournader  <roozbeh@sharif.edu>

	* fa.po: Updated Persian translation.
2003-02-24 10:30:41 +00:00
Jordi Mallach
1de5e09f78 Typo. 2003-02-22 22:55:29 +00:00
Jordi Mallach
c6ba891676 Catalan fixes. 2003-02-22 22:48:30 +00:00
Matthias Clasen
62fbfc2f50 Check if line_ancestor_parent is NULL. (#102711, Manuel Clos)
2003-02-20  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktextbtree.c (_gtk_text_line_previous_could_contain_tag):
	Check if line_ancestor_parent is NULL.  (#102711, Manuel Clos)

	* gtk/gtktextview.c (gtk_text_view_scroll_to_iter):
	(gtk_text_view_update_adjustments): Make sure cursor stays visible
	during horizontal scrolling.  (#75270)
2003-02-20 19:49:51 +00:00
Yuri Syrota
6a02a78342 Updated Ukrainian translation 2003-02-20 13:44:02 +00:00
Matthias Clasen
c43bf5f692 Always clear the initial frame and "disposed" areas with transparent
2003-02-20  Matthias Clasen  <maclas@gmx.de>

	* io-gif-animation.c (gdk_pixbuf_gif_anim_frame_composite):
	Always clear the initial frame and "disposed" areas with
	transparent pixels, no matter whether the frame has transparency
	or not.  (#55502)
2003-02-19 23:01:47 +00:00
Yuri Syrota
79d52607b2 Updated Ukrainian translation 2003-02-19 20:22:27 +00:00
Yuri Syrota
18fb6bc786 Updated Ukrainian translation 2003-02-19 20:06:42 +00:00
Yuri Syrota
4be242e03c Updated Ukrainian translation 2003-02-19 19:49:05 +00:00
Matthias Clasen
629b9c3241 Associate the keys_changed virtual function with the keys_changed signal.
2003-02-19  Matthias Clasen  <maclas@gmx.de>

	* gdk/gdkkeys.c (gdk_keymap_class_init): Associate the
	keys_changed virtual function with the keys_changed signal.
	(#106512, Jeff Franks)
2003-02-19 19:35:44 +00:00
Yuri Syrota
cc82e4fb09 Updated Ukrainian translation 2003-02-19 18:33:23 +00:00
Pablo Gonzalo del Campo
85953f9bf9 Fixed a hotkey mistake.
2003-02-19  Pablo Gonzalo del Campo <pablodc@bigfoot.com>

	* es.po: Fixed a hotkey mistake.
2003-02-19 18:13:40 +00:00
Larry Ewing
45b99c1223 copy the event axes as well.
2003-02-15  Larry Ewing  <lewing@ximian.com>

        * gdk/gdkevents.c (gdk_event_copy): copy the event axes as well.
2003-02-18 20:12:44 +00:00
Pablo Saratxaga
af76072dbd small fix 2003-02-18 00:55:19 +00:00
Mohammad DAMT
3b7ca9fdba Added Indonesian translation Added "id" to ALL_LINGUAS
2003-02-17  Mohammad DAMT  <mdamt@bisnisweb.com>

	* po/id.po: Added Indonesian translation
	* configure.in: Added "id" to ALL_LINGUAS
2003-02-17 07:44:25 +00:00
Christophe Merlet
2e58f2eb4b Updated French translation. 2003-02-16 23:30:58 +00:00
Matthias Clasen
ea243d2ea9 Remove bogus GTK_OBJECT cast. Hopefully got it right now...
2003-02-14  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtktextview.c (popup_targets_received): Remove bogus
	GTK_OBJECT cast. Hopefully got it right now...
	(gtk_text_view_move_cursor_internal): Add a default: to avoid
	compiler warnings.
2003-02-14 16:34:38 +00:00
Glynn Foster
4cd9b035c7 Use g_signal_connect instead of gtk_signal_connect.
2003-02-14  Glynn Foster  <glynn.foster@sun.com>

	* gtk/gtktextview.c: (popup_targets_received): Use g_signal_connect
	instead of gtk_signal_connect.
2003-02-14 13:27:45 +00:00
Dmitry Mastrukov
a9773cd5f6 be.po: Updated Belarusian translation from Belarusian team <i18n@mova.org>. 2003-02-14 12:07:02 +00:00
Matthias Clasen
bb0a15ea85 Actually reject images with origin not in the upper-left corner. (#105912)
2003-02-14  Matthias Clasen  <maclas@gmx.de>

	* io-tga.c (try_preload):
	(gdk_pixbuf__tga_load): Actually reject images with origin
	not in the upper-left corner.  (#105912)
2003-02-13 23:50:57 +00:00