Commit Graph

6911 Commits

Author SHA1 Message Date
Not Zed
6e0655fb50 Fixes #132929.
2004-01-30  Not Zed  <NotZed@Ximian.com>

	Fixes #132929.

	* gtk/gtktreeview.c (cancel_arrow_animation): remove the timeout
	handler when we clear the timeout id.
2004-01-30 18:34:15 +00:00
Owen Taylor
e62e82f3d2 gtk/gtktextlayout.c (line_display_iter_to_index) Only adjust the preedit
Thu Jan 29 18:08:06 2004  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktextlayout.c (line_display_iter_to_index)
        * gtk/gtktextlayout.c (line_display_index_to_iter): Only
        adjust the preedit position for lines that include the
        preedit string. (#132353, Yao Zhang). How the heck
        did this work as well as it did?!?!

        * modules/input/gtkimcontextxim.c (gtk_im_context_xim_get_ic):
        Reverse change to change of XNFilterEvents event mask from
        #110493 -- it's documented and in the Xlib code an
        unsigned long.

        * modules/input/gtkimcontextxim.c (preedit_start_callback):
        Return -1 rather than void to indicate no length limit.
        (#129548)
2004-01-29 23:36:15 +00:00
Manish Singh
708c67bda7 Remove conflict marker 2004-01-28 02:50:39 +00:00
Manish Singh
eda750195e quote AC_DEFUN macro names so automake 1.8 won't whine at us.
Tue Jan 27 18:45:47 2004  Manish Singh  <yosh@gimp.org>

        * m4macros/gtk-2.0.m4: quote AC_DEFUN macro names so automake
        1.8 won't whine at us.
2004-01-28 02:50:23 +00:00
Tor Lillqvist
bd17551164 Don' generate enter or leave events if the pointer is grabbed with
2004-01-28  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkevents-win32.c (synthesize_leave_event,
	synthesize_enter_event): Don' generate enter or leave events if
	the pointer is grabbed with owner_events off, and the grab event
	mask doesn't ask for them. (#129242)

	(gdk_event_translate): Ditto for focus change events.
2004-01-28 02:02:24 +00:00
Tor Lillqvist
5764cda28a If the WM_TRANSIENT_FOR property is being deleted, set the owner of the
2004-01-25  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkproperty-win32.c (gdk_property_delete): If the
	WM_TRANSIENT_FOR property is being deleted, set the owner of the
	window to the root window (i.e., effectively unset it). (#132411)

	* gdk/win32/gdkprivate-win32.h
	* gdk/win32/gdkglobals-win32.c
	* gdk/win32/gdkmain-win32.c: Declare, define and initialize
	_wm_transient_for, a GdkAtom for WM_TRANSIENT_FOR.
2004-01-25 22:09:28 +00:00
Tor Lillqvist
32f7993a14 Update to match the configure-produced config.h.
2004-01-22  Tor Lillqvist  <tml@iki.fi>

	* config.h.win32.in: Update to match the configure-produced
	config.h.

	* acconfig.h: Remove HAVE_WINSOCK_H, not used any longer.
2004-01-23 01:17:43 +00:00
Manish Singh
c7e13b6e44 Update freedesktop.org clipboard doc link. Patch from Andrew Moise
Sat Jan  3 11:39:42 2004  Manish Singh  <yosh@gimp.org>

        * gtk/gtkclipboard.c: Update freedesktop.org clipboard doc link.
        Patch from Andrew Moise (#130462).
2004-01-03 19:44:47 +00:00
13:49 Daniel Rogers
909feab750 gdk/x11/gdkinput-x11.c
2003-12-31 13:49 Daniel Rogers <dsrogers@phasevelocity.org>

        * gdk/x11/gdkinput-x11.c

        Fix to allow reasonable pointer behavior in window mode when an
        extended input device reports an incorrect resolution of 0.
Fixes
        bug #123546
2003-12-31 21:55:16 +00:00
Marco Pesenti Gritti
b2e61bed24 Merge from HEAD.
2003-12-17  Marco Pesenti Gritti  <marco@gnome.org>

	Merge from HEAD.

	* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_get_iter):

	Check that index is not bigger than level array length
	also when depth is 1. Now get_iter_first correctly return
	FALSE when the model is empty (#129411).
2003-12-17 23:12:53 +00:00
Kristian Rietveld
1396ec78e4 Merge from HEAD.
Wed Dec 17 23:31:19 2003  Kristian Rietveld  <kris@gtk.org>

	Merge from HEAD.

	* gtk/gtktreeview.c (gtk_tree_view_search_equal_func): only
	try to strcmp or strlen if we managed to normalize and casefold
	the string correctly. Fixes crashes with non-UTF8 strings.
	(#121617, Patch from Tim-Philipp Müller).
2003-12-17 22:34:43 +00:00
Kristian Rietveld
2258d82b57 Merge from HEAD.
Wed Dec 17 23:16:45 2003  Kristian Rietveld  <kris@gtk.org>

	Merge from HEAD.

	* gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
	(#122727, patch from Kjartan Maraas).
2003-12-17 22:20:39 +00:00
Tor Lillqvist
62f23fd5aa Calls to OpenClipboard() must be followed by calls to CloseClipboard().
2003-12-14  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkselection-win32.c: Calls to OpenClipboard() must be
	followed by calls to CloseClipboard(). Add a missing call to
	CloseClipboard(). Found by Adam Wright, fixes #104944. Use
	API_CALL macro in more places.
2003-12-14 02:17:21 +00:00
Tor Lillqvist
6049554ed7 Fix typo in an old ChangeLog entry. 2003-12-14 01:02:53 +00:00
Tim Evans
f125823aca Implement gdk_window_set_icon_list() for Win32, with support for big and
Tue Dec  8 09:41:00 2003  Tim Evans  <t.evans@aranz.com>

	* gdk/win32/gdkwindow-win32.[ch]: Implement
	gdk_window_set_icon_list() for Win32, with support for big and
	small icons and support for alpha-channel icons under Windows
	XP. Replaces the previous implementation of gdk_window_set_icon().
	(#128762)
2003-12-14 00:49:59 +00:00
Matthias Clasen
397b141771 Fix direction of steppers in inverted scrollbars. (#129084, Olexiy
Fri Dec 12 00:05:31 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkrange.c (gtk_range_scroll): Fix direction of
	steppers in inverted scrollbars.  (#129084, Olexiy Avramchenko)
2003-12-11 23:18:38 +00:00
Dmitry Mastrukov
92ee1d5043 ru.po: Updated Russian translation from Russian team <gnome-cyr@gnome.org>. 2003-12-10 03:58:19 +00:00
Noah Levitt
f8dac1c00a Add keysyms Ukrainian_ghe_with_upturn, Ukrainian_GHE_WITH_UPTURN.
2003-12-09  Noah Levitt  <nlevitt@columbia.edu>

	* gdk/gdkkeysyms.h:
	* gdk/gdkkeyuni.c: Add keysyms Ukrainian_ghe_with_upturn,
	Ukrainian_GHE_WITH_UPTURN. (#128529)
2003-12-09 22:05:43 +00:00
Tor Lillqvist
5610323fa5 Use <multimon.h> when compiling with MSVC and old headers. (#126933, John
2003-12-08  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkdisplay-win32.c: Use <multimon.h> when compiling
	with MSVC and old headers. (#126933, John Ehresman)
2003-12-08 22:37:54 +00:00
Tor Lillqvist
6f9b187a77 Don't use the return value from SendMessage(WM_SETICON). That is the old
2003-12-07  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkwindow-win32.c (gdk_window_set_icon): Don't use the
	return value from SendMessage(WM_SETICON). That is the old
	icon. Fixes GDI resource leak. (#128559, Tim Evans)
2003-12-07 11:01:51 +00:00
Tor Lillqvist
36acee8bf5 If we already have a pointer grab active with a grab cursor set, destroy
2003-12-07  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkevents-win32.c (gdk_pointer_grab): If we already
	have a pointer grab active with a grab cursor set, destroy that
	cursor to avoid a GDI resource leak. (#128410, Tim Evans)
2003-12-07 06:50:41 +00:00
Manish Singh
22e17e453c Applied patch from Ross McFarland <rwmcfa1@neces.com>, initialize *count_p
Fri Dec  5 15:30:16 2003  Manish Singh  <yosh@gimp.org>

        * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from
        Ross McFarland <rwmcfa1@neces.com>, initialize *count_p to 0
        before doing anything to prevent garbage returns.
2003-12-05 23:33:04 +00:00
Sven Neumann
565faff653 added missing code to make it compile again.
2003-12-02  Sven Neumann  <sven@gimp.org>

        * gtk/gtktreeview.c (gtk_tree_view_size_allocate_columns): added
        missing code to make it compile again.
2003-12-02 12:17:27 +00:00
Jonathan Blandford
4ef1405064 Patch from <chinen@jp.ibm.com> to handle RTL support for column resizers.
Sat Nov 29 00:55:28 2003  Jonathan Blandford  <jrb@gnome.org>

	* gtk/gtktreeview.c (gtk_tree_view_new_column_width):
	* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
	Patch from <chinen@jp.ibm.com> to handle RTL support for column
	resizers.
2003-11-29 06:13:43 +00:00
Matthias Clasen
6cfa3da754 Add a missing comma.
Sun Nov 23 21:00:33 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/tree_widget.sgml: Add a missing comma.
2003-11-23 20:00:45 +00:00
Jonathan Blandford
91e53e9dda Patch from David Hampton to fix sorting on booleans.
Thu Nov 20 15:11:18 2003  Jonathan Blandford  <jrb@redhat.com>

        * gtk/gtktreedatalist.c (gtk_tree_data_list_compare_func): Patch
        from David Hampton to fix sorting on booleans.
2003-11-20 20:13:16 +00:00
Soeren Sandmann
1331607e5b Use gtk_widget_is_focus() instead of GTK_WIDGET_HAS_FOCUS. (#122327, Owen
Thu Nov 20 15:48:03 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

	* gtk/gtksocket.c (gtk_socket_focus): Use gtk_widget_is_focus()
	instead of GTK_WIDGET_HAS_FOCUS. (#122327, Owen Taylor. Reported
	by Frederic Crozat).
2003-11-20 14:53:30 +00:00
Zygimantas Berucka
6fd2c6099a Updated Lithuanian translation by Tomas Kuliavas.
2003-11-20  Zygimantas Berucka  <uid0@tuxfamily.org>

* lt.po: Updated Lithuanian translation by Tomas Kuliavas.
2003-11-20 09:54:05 +00:00
Dafydd Harries
f2562d2e72 Fix mistakes I made with CVS. 2003-11-19 17:24:21 +00:00
Matthias Clasen
c086cf2b95 Call gtk_widget_hide(menu) when reattaching the menu. (#126057)
Wed Nov 19 02:18:37 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkmenu.c (gtk_menu_set_tearoff_state): Call
	gtk_widget_hide(menu) when reattaching the menu.  (#126057)
2003-11-19 01:32:17 +00:00
Noah Levitt
44e9eee7c1 Check for freetype headers the way freetype wants us to.
2003-11-17  Noah Levitt  <nlevitt@columbia.edu>

	* configure.in: Check for freetype headers the way freetype
	wants us to.
2003-11-17 21:03:36 +00:00
Tor Lillqvist
0cb2f6c9dd If the window is maximized, use SW_SHOWMAXIMIZED. (#126986, John Ehresman)
2003-11-15  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkwindow-win32.c (gdk_window_focus): If the window is
	maximized, use SW_SHOWMAXIMIZED. (#126986, John Ehresman)
2003-11-15 04:18:40 +00:00
Jordi Mallach
8ebd2941cb Typo fixes by Jordi Mas <jmas@softcatala.org>. 2003-11-13 14:11:33 +00:00
Matthias Clasen
359df1d0f6 Add a const to get rid of a compiler warning. (#122712, Kjartan Maraas)
Wed Nov 12 21:05:30 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkstyle.c (make_cursor_gc): Add a const to get rid of
	a compiler warning.  (#122712, Kjartan Maraas)
2003-11-12 20:06:28 +00:00
Matthias Clasen
b33de86552 Map KP_Separator to ','. (#122941, Egmont Koblinger)
Wed Nov 12 20:54:02 2003  Matthias Clasen  <maclas@gmx.de>

	* gdk/gdkkeyuni.c: Map KP_Separator to ','.
	(#122941, Egmont Koblinger)
2003-11-12 19:56:00 +00:00
Padraig O'Briain
0b492e1844 *gtk/gtkcolorsel.c (gtk_color_selection_init): Add tooltip for opacitiy
2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>

	*gtk/gtkcolorsel.c (gtk_color_selection_init): Add tooltip for
	opacitiy entry widget. (#126426)
2003-11-12 09:20:12 +00:00
Padraig O'Briain
3c187a359e Do not let pointer position affect window menu position when popped from
2003-11-12  Padraig O'Briain  <padraig.obriain@sun.com>

	* gtk/gtkmenu.c (gtk_menu_popup): Do not let pointer position
	affect window menu position when popped from keyboard. (#102660)
2003-11-12 09:06:35 +00:00
Matthias Clasen
2c348afe8d Fix doc comment. (#126369, Olexiy Avramchenko)
Thu Nov  6 20:41:40 2003  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkstyle.c (gtk_style_attach): Fix doc comment.
	(#126369, Olexiy Avramchenko)
2003-11-06 19:46:15 +00:00
Tony Gale
25d4a360f0 ed Nov 5 08:58:34 GMT 2003 Tony Gale <gale@gtk.org>
* docs/faq/gtk-faq.sgml: Bring across changes from HEAD:
          - Update info on compiling GTK+
          - mirrors,compiling,g_main_context_iteration
          - fix pkg-config command error, update copyright.
          - More 2.x updates
2003-11-05 09:00:38 +00:00
Dafydd Harries
dae66a8e4a Translation ported from gnome-2-4 branch. 2003-11-04 19:01:30 +00:00
Åsmund Skjæveland
1fef918a01 Updated Norwegian Nynorsk translation.
2003-11-02  Åsmund Skjæveland  <aasmunds@fys.uio.no>

	* nn.po: Updated Norwegian Nynorsk translation.
2003-11-02 12:10:53 +00:00
Åsmund Skjæveland
5f959c7082 Updated Norwegian Nynorsk translation.
2003-10-30  Åsmund Skjæveland  <aasmunds@fys.uio.no>

	* nn.po: Updated Norwegian Nynorsk translation.
2003-10-30 12:44:39 +00:00
Owen Taylor
3efb99c850 Move the call to gdk_error_trap_pop() to the right place, fixing a problem
Wed Oct 29 15:01:32 2003  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkimage-x11.c (_gdk_x11_copy_to_image): Move
        the call to gdk_error_trap_pop() to the right place,
        fixing a problem where we'd pop() too many times
        when bailing out. (#123302, Thomas Leonard)
2003-10-29 20:05:52 +00:00
Owen Taylor
a3051d3c8e #include <X11/extensions/Xrandr.h> if we have RandR support, for
Tue Oct 28 09:50:25 2003  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkscreen-x11.c: #include <X11/extensions/Xrandr.h> if
        we have RandR support, for XRRUpdateConfiguration declaration.
        (Change by Manish Singh from head; fixes #122711,
        Kjartan Maraas)
2003-10-28 14:53:20 +00:00
Owen Taylor
9aeb3b8036 Silently do nothing when recipient is NULL, as described in the doc
Tue Oct 28 09:44:16 2003  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkxembed.c (_gtk_xembed_send_focus_message): Silently
        do nothing when recipient is NULL, as described in the
        doc comment. (#123107, Thomas Leonard)
2003-10-28 14:47:35 +00:00
Tor Lillqvist
3652de5c5d Add a missing entry.
2003-10-25  Tor Lillqvist  <tml@iki.fi>

	* gdk/gdk.def: Add a missing entry.

	* gdk/gdkdisplaymanager.c: Mark default_display static.

	* gdk/win32/gdkdnd-win32.c: Mark current_dest_drag static.

	* gdk/win32/gdkkeys-win32.c: Disable some overly verbose debugging
	output.

	* gdk/win32/gdkevents-win32.c: Clean up the debugging output from
	--gdk-debug=events. In general, output just one line of debugging
	output for each Windows message, plus one line for each GDK event
	generated. Indent all lines according to window procedure nesting
	level.

	(inner_window_procedure): Rename from real_window_procedure.

	(find_real_window_for_grabbed_mouse_event): Don't get misled when
	the point is in the non-client (decoration) area of the window
	returned by WindowFromPoint(). Return the root window in that
	case.

	(build_pointer_event_state): Test also MK_XBUTTON1 and
	MK_XBUTTON2 (buttons 4 and 5).

	(synthesize_enter_event): Track the mouse leaving the window in
	the event being generated, not the one mentioned in the Windows
	message.

	(propagate): Test for NULL parent earlier. Improves event
	generation from a grabbed pointer. Part of fix for #107320.

	(handle_stuff_while_moving_or_resizing): New function, to
	dispatch the main loop (once).

	(resize_timer_proc): New function, set to be called by an inerval
	timer during resizes/moves. Calls handle_stuff_while_moving_or_resizing().

	(gdk_event_translate): Drop unused return_exposes parameter.

	Handle WM_XBUTTONDOWN and UP messages (buttons 4 and 5).

	On WM_SYSKEYUP, generate a key release event also for just the Alt
	key.

	On WM_CANCELMODE, if the pointer and keyboard are grabbed, fake a
	mouse click on the root window. This is an awful hack to get menus
	to pop down properly when switching to another top-level window
	using the task switcher (Alt-Tab). Using low-level hooks to
	implement pointer and keyboard grabbing would be cleaner, but
	low-level hooks sound a bit dangerous, and Owen say we should
	avoid using them if at all possible. Fix for #107320.

	On WM_MOUSELEAVE, generate a leave event of type
	GDK_NOTIFY_ANCESTOR (and not UNKNOWN) if the mouse left a
	top-level window, and left the app completely.

	On WM_ENTERSIZEMOVE, set a flag, and start an interval timer that
	calls resize_timer_proc() at regular intervals. On
	WM_EXITSIZEMOVE, kill the timer.

	On WM_WINDOWPOSCHANGED, generate a configure event if necessary,
	and dispatch the main loop (by calling
	handle_stuff_while_moving_or_resizing()). Fixes #99540, idea by
	Herman Bloggs.

	* gdk/win32/gdkmain-win32.c (_gdk_win32_message_to_string): Handle
	also wintab messages.

	* gdk/win32/gdkwindow-win32.c (gdk_window_set_skip_taskbar_hint):
	Instead of using WS_EX_TOOLBAR, implement by setting/unsetting the
	window's owner. Fixes #118093, reported by Maxime Romano.
2003-10-26 02:49:07 +00:00
Kristian Rietveld
7e90a8e83d Merge from HEAD.
Tue Oct 21 22:20:08 2003  Kristian Rietveld  <kris@gtk.org>

	Merge from HEAD.

	* gtk/gtktreeview.c (gtk_tree_view_real_move_cursor): set
	ctrl_pressed and shift_pressed according to the current event
	state (if there is one). (Fixes #125063, reported by Sebastien Bacher).
2003-10-21 20:24:01 +00:00
Miloslav Trmac
33d6ff4a43 Update Czech translation 2003-10-18 14:41:02 +00:00
Federico Mena Quintero
4ac136c6a5 Don't do operations on windows if the tree view is not mapped.
2003-10-13  Federico Mena Quintero  <federico@ximian.com>

	* gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Don't do
	operations on windows if the tree view is not mapped.
	(gtk_tree_view_button_press): Compare equal types of pointers, not
	GtkWidget* vs. GtkTreeView*.
2003-10-13 21:54:55 +00:00
Richard Allen
f8dc189b67 Cleanups in is.po 2003-10-12 05:32:31 +00:00