1. 06 Aug, 2003 2 commits
  2. 05 Aug, 2003 3 commits
    • Hans Breuer's avatar
      set HWND_NOTOPMOST for modal==FALSE, fixes bug #118435 · d2c64e30
      Hans Breuer authored
      2003-08-04  Hans Breuer  <hans@breuer.org>
      	* gdk/win32/gdkwindow-win32.c(gdk_window_set_modal_hint) :
      	set HWND_NOTOPMOST for modal==FALSE, fixes bug #118435
      	* gdk/win32/gdkwindow-win32.c : implement gdk_window_[un]fullscreen
      	(gdk_window_{move,resize,move_rezize})) : noop if FULLSCREEN
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_icon) :
      	against all expectations it is basically ony a call with WM_SETICON
      	needed (the visual effect is there, though colors or mask are
      	still somewhat wrong).
      	* gdk/win32/gdkwindow-win32.h : place to store the HICON
      	* gdk/win32/gdkdrawabke.win32.c : readded the conditional end
      	pixel drawing as it was fixed at 1999-08-23
      	gtk/gtk.def : updated
    • Matthias Clasen's avatar
      Add bug number. · 7ef86d23
      Matthias Clasen authored
    • Owen Taylor's avatar
      Add a missing break. (#119156, Callum McKenzie) · 411821fa
      Owen Taylor authored
      Tue Aug  5 10:07:08 2003  Owen Taylor  <otaylor@redhat.com>
              * gtk/gtkmessagedialog.c (gtk_message_dialog_get_property):
              Add a missing break. (#119156, Callum McKenzie)
  3. 04 Aug, 2003 4 commits
    • Soeren Sandmann's avatar
      New positioning algorithm.(#116649) · 094657e8
      Soeren Sandmann authored
      Tue Aug  5 00:24:13 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      	* gtk/gtkmenu.c (gtk_menu_position): New positioning
    • Soeren Sandmann's avatar
      add new "is_important" property · 6f6d3a22
      Soeren Sandmann authored
      Fri Aug  1 15:26:46 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      	* gtk/gtktoolbar.c, gtk/toolitem.c: add new "is_important"
      	* gtk/gtkradiotoolbutton.c
      	(gtk_radio_tool_button_new_from_widget): Don't take a stock id
      	* gtk/gtkradiotoolbutton.c
      	(gtk_radio_tool_button_new_with_stock_from_widget): make this
      	function take a stock_id.
      	* gtk/toolbar: documentation
    • Owen Taylor's avatar
      Fix problem where use_xshm was getting set wrong if MIT_SHM wasn't found. · 72f11163
      Owen Taylor authored
      Mon Aug  4 14:53:46 2003  Owen Taylor  <otaylor@redhat.com>
              * gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init):
              Fix problem where use_xshm was getting set wrong if
              MIT_SHM wasn't found. (George Lebel)
    • Tor Lillqvist's avatar
      2003-08-04 Tor Lillqvist <tml@iki.fi · b9987ad7
      Tor Lillqvist authored
      	* gdk/win32/gdkevents-win32.c (apply_filters): Fix braino:
      	actually use the passed-in filter list. The function also needs a
      	GdkWindow parameter, as filter functions expect
      	GdkEvent::any.window to be valid. (#119034, Hans Breuer)
  4. 03 Aug, 2003 1 commit
  5. 02 Aug, 2003 4 commits
    • Matthias Clasen's avatar
      Use g_setenv() instead of putenv(). · 0df78ed7
      Matthias Clasen authored
    • Owen Taylor's avatar
      Requires glib-2.3.0, pango-1.2.0. · 88c1c946
      Owen Taylor authored
      Sat Aug  2 12:53:16 2003  Owen Taylor  <otaylor@redhat.com>
              * configure.in: Requires glib-2.3.0, pango-1.2.0.
              * configure.in: Require Xft version 2,
              remove code for handling older versions of pango and Xft.
              Many miscellaneous improvements to X checks
              * acinclude.m4: Add GTK_ADD_LIB() macro for adding
              a library to a variable, avoiding dups.
              * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
              Always load "fixed"
              * gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
              for pangox.
    • Matthias Clasen's avatar
      Accept drops with the wrong format, since the KDE color chooser · 3d4c726c
      Matthias Clasen authored
      2003-08-02  Matthias Clasen  <maclas@gmx.de>
      	* gtk/gtkcolorsel.c (color_sample_drop_handle)
      	* gtk/gtkcolorbutton.c (gtk_color_button_drag_data_received):  Accept drops with the
      	wrong format, since the KDE color chooser incorrectly drops application/x-color with
      	format 8.
    • Tor Lillqvist's avatar
      Fix gdk/win32 window geometry handling again. The window position in a · 3dc24f58
      Tor Lillqvist authored
      2003-08-02  Tor Lillqvist  <tml@iki.fi>
      	Fix gdk/win32 window geometry handling again. The window position
      	in a GDK_CONFIGURE event should be that of the client area, not of
      	the window decorations. (I was confused by the term "window
      	border" in X11. It does *not* mean the window manager
      	decorations. There are no X11-style window borders in Win32.)
      	Also, this time do take the geometry hints into account
      	appropriately when moving windows. Now testgtk's gravity test's
      	move buttons work OK. There are stil problems with taking gravity
      	into account when showing a hidden window.
      	* gdk/win32/gdkwindow-win32.h: Keep a whole GdkGeometry as hints
      	instead of separate fields.
      	* gdk/win32/gdkevents-win32.c (handle_configure_event): Don't
      	adjust for decorations.
      	* gdk/win32/gdkwindow-win32.c (get_outer_rect,
      	adjust_for_gravity_hints): New functions.
      	(gdk_window_move, gdk_window_resize, gdk_window_move_resize): Use
      	above functions, take geometry hints into account.
      	(gdk_window_set_geometry_hints): Size hints specicy client area,
      	not including decorations.
  6. 01 Aug, 2003 5 commits
  7. 31 Jul, 2003 5 commits
  8. 30 Jul, 2003 2 commits
  9. 29 Jul, 2003 3 commits
    • Matthias Clasen's avatar
      Some updates to the DND signal docs. · 1144aa35
      Matthias Clasen authored
      2003-07-30  Matthias Clasen  <maclas@gmx.de>
      	* gtk/gtkwidget.c (gtk_widget_class_init): Some updates to the DND signal docs.
    • Tor Lillqvist's avatar
      Fix for #108007, #112402, #117042: There was confusion in gdk/win32 at · 09f777e5
      Tor Lillqvist authored
      2003-07-29  Tor Lillqvist  <tml@iki.fi>
      	Fix for #108007, #112402, #117042: There was confusion in
      	gdk/win32 at various places whether a window position refers to
      	the decoration position or the client area position. Also whether
      	window size includes decorations or not.
      	The correct interpretation apparently is that in GDK (like in
      	X11), a top-level window position means the decoration's position,
      	but size means the window's inner size (client area size). In the
      	Win32 API, the window size usually includes the decorations,
      	* gdk/win32/gdkevents-win32.c (decode_key_lparam): Move inside
      	#ifdef G_ENABLE_DEBUG.
      	(handle_configure_event): New function, generates GDK_CONFIGURE
      	events from WM_SIZE and WM_MOVE messages. Even if no event is
      	generated because of the event mask, still set the private
      	position and size fields. Calculate position and size correctly.
      	(gdk_event_translate): Call handle_configure_event().
      	* gdk/win32/gdkgeometry-win32.c: Cosmetics.
      	* gdk/win32/gdkwindow-win32.c: Use GDI_CALL() and API_CALL()
      	macros. Cosmetic debugging output changes.
      	(SafeAdjustWindowRectEx): Remove. If an application wants to
      	locate a window outside of the screen, it's not GDK's business to
      	prevent it. And anyway, with multiple monitors, negative
      	coordinates are perfectly normal.
      	(gdk_window_new): Adjust the window size for decorations after
      	_gdk_window_init_position() has done its job. (But the big window
      	code currently is presumably broken on Win32 anyway.)
      	(gdk_window_move): The position passed in is supposed to be that
      	of the window border, so don't need to adjust for decorations.
      	(gdk_window_resize, gdk_window_move_resize): Simplify somewhat.
    • Soeren Sandmann's avatar
      Move documentation inline from template files. · 05ce8747
      Soeren Sandmann authored
      Tue Jul 29 13:55:44 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      	* gtk/gtktoolbar.c (gtk_toolbar_set_style,
      	gtk_toolbar_prepend_element, gtk_toolbar_append_element,
      	gtk_toolbar_insert_space, gtk_toolbar_prepend_space,
      	gtk_toolbar_append_space, gtk_toolbar_insert_item,
      	gtk_toolbar_prepend_item, gtk_toolbar_append_item,
      	gtk_toolbar_set_tooltips, gtk_toolbar_set_orientation,
      	gtk_toolbar_new, gtk_toolbar_prepend_item):
      	Move documentation inline from template files.
      	* gtk/gtktoolbar.c (gtk_toolbar_insert_element,
      	gtk_toolbar_insert_widget, gtk_toolbar_prepend_widget,
      	gtk_toolbar_append_widget, gtk_toolbar_remove_space,
      	gtk_toolbar_insert_stock, gtk_toolbar_unset_icon_size,
      	gtk_toolbar_get_icon_size, gtk_toolbar_set_icon_size,
      	gtk_toolbar_get_tooltips, gtk_toolbar_unset_style,
      	gtk_toolbar_get_style, gtk_toolbar_get_orientation)
      	Copy documentation from stable that was added after the EggToolbar
      	* gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
  10. 28 Jul, 2003 1 commit
  11. 27 Jul, 2003 3 commits
  12. 26 Jul, 2003 2 commits
    • Soeren Sandmann's avatar
      don't request toggle_space when the image width is 0. · c9714692
      Soeren Sandmann authored
      Sat Jul 26 15:21:27 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
      	* gtk/gtkimagemenuitem.c
      	(gtk_image_menu_item_toggle_size_request): don't request
      	toggle_space when the image width is 0.
    • Tor Lillqvist's avatar
      gdk/win32/gdkprivate-win32.h New flags _gdk_input_locale_is_ime and · 63f74573
      Tor Lillqvist authored
      2003-07-25  Tor Lillqvist  <tml@iki.fi>
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkglobals-win32.c: New flags _gdk_input_locale_is_ime
      	and _gdk_keyboard_has_altgr.
      	* gdk/win32/gdkevents-win32.c: Lots of changes. Most important
      	ones detailled here.
      	Code that has been ifdeffed out for a long time removed. Remove
      	some really old doc comments that were left behind for some public
      	functions, the official ones are in the X11 backend anyway. Change
      	GDK_WINDOW_OBJECT() calls to GdkWindowObject casts. Reformat
      	multi-line boolean expressions to have the operators at ends of
      	As mouse capture with SetCapture() indeed seems to work OK, no
      	need to have the correspoinding macro USE_SETCAPTURE and ifdefs.
      	Ifdef out the gdk-ping-msg stuff. I don't remember why it was
      	needed at some time, and things seem to work fine now without
      	(knock on wood).
      	Ifdef out the search for some Latin locale keyboard layout being
      	loaded. Not used currently, but might be needed after all, if we
      	decide that we want to be able to generate ASCII control character
      	events with a non-Latin keyboard.
      	(assign_object): New helper function, handles the g_object_ref()
      	and unref() calls when assigning GObject pointers.
      	(generate_crossing_events): Also generate the GDK_NOTIFY_INTERIOR
      	enter event when the pointer has moved to an ancestor window. Was
      	left out by mistake.
      	(gdk_window_is_ancestor): Renamed from gdk_window_is_child().
      	(gdk_pointer_grab, gdk_pointer_ungrab): Implement the confine_to
      	functionality, using ClipCursor().
      	(find_window_for_mouse_event): Splice part of code into new
      	function find_real_window_for_grabbed_mouse_event().
      	(fixup_event, append_event, apply_filters): New functions, code
      	refactored out from elsewhere.
      	(synthesize_enter_or_leave_event, synthesize_leave_event,
      	synthesize_leave_events,synthesize_enter_events): Also take a
      	GdkCrossingMode parameter, in preparation to generating
      	(fixup_event, append_event, fill_key_event_string): New functions,
      	code refactoring.
      	(vk_from_char, build_keypress_event, build_keyrelease_event):
      	Removed as part of dropping WM_CHAR handling.
      	(build_key_event_state,gdk_event_translate): Call
      	GetKeyboardState(), once, for each keyboard message, instead of
      	several calls to GetKeyState() here and there.
      	(gdk_event_translate): Fix bugs #104516, #104662, #115902. While
      	at it, do some major refactoring, and some fixes for potential
      	problems noticed while going through the code.
      	Don't handle WM_CHAR at all. Only handle WM_KEYDOWN and
      	WM_KEYUP. Don't need the state variables related to whether to
      	wait for WM_CHAR or not, and whether the current key is
      	AltGr. Remove lots of complexity. Thus don't need the
      	use_ime_composition flag.
      	Not handling WM_CHAR means dead key handling will have to be taken
      	care of by GTK, but that seems to work fine, so no worry.
      	Another side-effect is that Alt+keypad digits don't work any
      	longer, but it's better to learn to use GTK's ISO14755 support is
      	Be more careful in checking whether AltGr is involved. Only
      	attempt to handle it if the keyboard actually has it. And
      	explicitly check for *left* Control plus *right* Alt being
      	pressed. Still, allow (left) Alt and/or (right) Control with AltGr
      	Handle keys using similar code as in the X11 backend. As we have
      	built a keymap in gdkkeys-win32.c anyway, use it by calling
      	gdk_keymap_translate_keyboard_state() to look up the keysym from
      	the virtual key code and keyboard state. Build the key event
      	string in exactly the same way as the X11 backend.
      	If an IME is being used, don't generate GDK events for keys
      	between receiving WM_IME_STARTCOMPOSITION and
      	WM_IME_ENDCOMPOSITION, as those keys are for the IME.
      	For WM_IME_COMPOSITION, handle all the Unicode chars returned from
      	the IME, not just the first one.
      	gdk_event_translate() is still quite complex, could split the
      	message handler cases out into separate functions.
      	On mouse events, when the mouse is grabbed, use
      	find_real_window_for_grabbed_mouse_event() in order to be able to
      	generate correct crossing events.
      	No longer take a pre-allocated GdkEvent as parameter. Instead,
      	allocate events as needed and append them to the queue. (This is
      	different from how gdk_event_translate() in the X11 backend
      	works.) This change made the code much clearer, especially in the
      	cases where we have to generate several GDK events for one Windows
      	message.  Return FALSE if DefWindowProc() should be called, TRUE
      	if not. If DefWindowProc() should not be called, also return the
      	value to be returned from the window procedure.
      	(Previously, the interaction with gdk_event_translate()'s caller
      	was much more complex, when we had to indicate whether the
      	already-queued event should be left in the queue or removed, and
      	in addition also had to indicate whether to call DefWindowProc()
      	or not, and what value to return from the window procedure if
      	Don't use a separate "private" variable required to be pointing to
      	the GdkWindowObject of the "window" variable at all times. Just
      	use casts, even if looks a bit uglier.
      	Notice destroyed windows as early as possible, and break out of
      	the messsage switch.
      	Use _gdk_pointer_root as current_window when the pointer is
      	outside GDK's top-level windows.
      	On WM_INPUTLANGCHANGE, set _gdk_input_locale_is_ime as
      	appropriate, based on ImmIsIME().
      	(gdk_event_translate, gdk_event_send_client_message_for_display,
      	gdk_screen_broadcast_client_message): Implement client messages.
      	Use a registered Windows message to pass GDK client messages. Note
      	that the amount of user data is restricted to four bytes, as it is
      	carried in the LPARAM. (The WPARAM is used for the message type
      	(real_window_procedure): Adapt for new gdk_event_translate()
      	* gdk/win32/gdkmain-win32.c (_gdk_windowing_init): Set
      	_gdk_input_locale_is_ime initially.
      	* gdk/win32/gdkwindow-win32.c: Use g_object_ref()/unref() instead
      	of g_colormap_ref()/unref().
      	(gdk_window_new): Made code a bit more like the X11 one, pretend
      	to handle screens (although we just have one for now).
      	* gdk/x11/gdkevents-x11.c
      	gdk_screen_broadcast_client_message): Document the user data
      	limitation on Win32.
      	* gdk/win32/gdkevents-win32.c (print_event): More complete enter
      	and leave notify detail output.
      	* gdk/win32/gdkkeys-win32.c (update_keymap): Make dead keys
      	visible to GDK and GTK. Store the corresponding GDK_dead_* keysym
      	for those, so that the GtkIMContextCimple compose tables will
      	work. Deduce if the keyboard layout has the AltGr key, and set the
      	above flag accordingly.
  13. 25 Jul, 2003 1 commit
  14. 24 Jul, 2003 1 commit
  15. 23 Jul, 2003 2 commits
  16. 20 Jul, 2003 1 commit
    • Hans Breuer's avatar
      new file to build it all ... added to EXTRA_DIST · 364272b5
      Hans Breuer authored
      2003-07-20  Hans Breuer  <hans@breuer.org>
      	* makefile.msc : new file to build it all
      	* Makefile.am : ... added to EXTRA_DIST
      	* gdk/makefile.msc gtk/stock-icons/makefile.msc
      	  gtk/makefile.msc.in tests/makefile.msc : updated
      	* gdk/gdk.def gtk/gtk.def : export a bunch of new
      	* gtk/gtkbbox.c : use g_return_val_if_fail() if
      	there is a value to return
      	* gtk/gtkfontsel.c gtk/gtkiconfactory.c :
      	static correctness
      	* gtk/gtkicontheme.c : ported to use GTimeVal instead of
      	struct timeval and GTK_DATA_PREFIX instead of GTK_DATADIR
      	* gtk/gtkicontheme.c : use HAVE_LC_MESSAGES
      	* gtk/gtkimmulticontext.c : use gtkprivate.h
      	* gtk/stock-icons/stock_color_picker_25.png
      	  gtk/stock-icons/stock_undo_rtl_16.png :
      	  gtk/stock-icons/stock_undo_rtl_24.png :
      	readded as binary