1. 08 Aug, 2003 2 commits
    • Matthias Clasen's avatar
      Fix a segfault. (#115284, Jan Kratochvil) · 699e1c74
      Matthias Clasen authored
      2003-08-08  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk/gdkregion-generic.c (gdk_region_spans_intersect_foreach): Fix a segfault.  (#115284,
      	Jan Kratochvil)
      699e1c74
    • Tor Lillqvist's avatar
      Print also the root coordinates for events that have such. Print · ad24b9ca
      Tor Lillqvist authored
      2003-08-08  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkevents-win32.c (print_event): Print also the root
      	coordinates for events that have such. Print coordinates for enter
      	and leave events.
      
      	(gdk_event_translate): Don't use event uninitialixed in the
      	return_exposes branch of the WM_PAINT handler.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_new,
      	_gdk_windowing_window_get_pointer, _gdk_windowing_window_at_pointer):
      	Must offset top-level window coordinates here, too.
      ad24b9ca
  2. 07 Aug, 2003 8 commits
    • Matthias Clasen's avatar
      Hide the resize grip when maximized or fullscreen. · 3d0b5b8d
      Matthias Clasen authored
      2003-08-08  Matthias Clasen  <maclas@gmx.de>
      
      	* demos/gtk-demo/appwindow.c (do_appwindow): Hide the resize grip when maximized or fullscreen.
      3d0b5b8d
    • Tor Lillqvist's avatar
      gdk/win32/gdkinput-win32.h Drop the GdkEvent* parameter, it wasn't used. · 5155f3ca
      Tor Lillqvist authored
      2003-08-07  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkinput-win32.h
      	* gdk/win32/gdkinput-win32.c (_gdk_input_configure_event,
      	_gdk_input_enter_event): Drop the GdkEvent* parameter, it wasn't
      	used.
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate): Adapt caller
      	accordingly, in fact an uninitialised variable was dereferenced.
      
      
      	[Win32] Add support for multiple monitors.
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkglobals-win32.c: New global variables for
      	multiple-monitor info: _gdk_num_monitors, _gdk_monitors, and
      	_gdk_offset_x and _gdk_offset_y.
      
      	* gdk/win32/gdkdisplay-win32.c (count_monitor, enum_monitor): New
      	functions, enumeration functions passed to EnumDisplayMonitors().
      
      	(gdk_display_open): If the EnumDisplayMonitors() and
      	GetMonitorInfo() API is present (on Win98, Win2000 and newer), use
      	if to find out monitor info.
      
      	Calculate the offset between Win32 coordinates (relative to the
      	primary monitor's origin (and thus negative on monitors to the
      	left of or above it), and GDK's (visible coordinates should be
      	non-negative).
      
      	* gdk/win32/gdkscreen-win32 (gdk_screen_get_n_monitors,
      	gdk_screen_get_monitor_geometry): Use information collected above.
      
      	(gdk_window_move, gdk_window_move_resize_window_get_geometry):
      	Subtract _gdk_offset_{x,y} from GDK root window coordinates.
      
      	(gdk_window_get_geometry, gdk_window_get_origin,
      	gdk_window_get_frame_extents): For top-level windows, add
      	_gdk_offset_{x,y} to GDK root window coordinates
      
      	Still need to handle multiple monitors in
      	gdk_window_fullscreen(). Probably should make the window
      	fullscreen on the monitor where the cursor is?
      
      	* gdk/win32/gdkevents-win32.c: Add _gdk_offset_{x,y} to all GDK
      	root window coordinates in GdkEvents.
      
      
      	[Win32] Fix geometry hint handling. Add support for resize
      	increment and base size, and aspect ratio geometry hints. The
      	"gridded geometry" test in testgtk now works beautifully.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints):
      	Turns out this function shouldn't actually ever modify the
      	window's size, just store the hints. (Old code kept for a while
      	inside #if 0.)
      
      	(gdk_window_set_hints): Remove presumably broken code that handles
      	the position hints, this function is obsolete anyway.
      
      	* gdk/win32/gdkevents-win32.c: Drop the current_{x,y}_root
      	variables, not used.
      
      	(adjust_drag): New function, used to implement resize increment
      	hints.
      
      	(gdk_event_translate): Handle WM_SIZING, implement resize
      	increment and base size, and aspect ratio geometry hints here. The
      	WM_GETMINMAXINFO handler takes care of the minimum and maximum
      	size hints as before. Fix the WM_GETMINMAXINFO handler to take
      	into account window decorations. No need to modify the
      	ptMaxPosition and ptMaxSize fields in the MINMAXINFO struct,
      	the defaults are fine.
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/gdkwindow-win32.c (_gdk_win32_adjust_client_rect,
      	_gdk_win32_get_adjusted_client_rect): New helper functions.
      5155f3ca
    • Matthias Clasen's avatar
      Reset the toplevel->have_* flags before iterating over the _NET_WM_STATE · 9bfaab6e
      Matthias Clasen authored
      2003-08-07  Matthias Clasen  <maclas@gmx.de>
      
      	* gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): Reset the toplevel->have_* flags before
      	iterating over the _NET_WM_STATE atoms.  (#119217)
      9bfaab6e
    • Owen Taylor's avatar
      Fix a bug where on theme change, resize/redraw wasn't properly getting · bccfe548
      Owen Taylor authored
      Thu Aug  7 16:49:29 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkwidget.c (gtk_widget_set_style_internal):
              Fix a bug where on theme change, resize/redraw wasn't
              properly getting queued on toplevel windows. (#116346,
              Rajkumar Siva)
      
              * gtk/gtkwidget.c (gtk_widget_invalidate_widget_windows):
              Fix bug where wrong coordinates were used for toplevel
              window.
      bccfe548
    • Owen Taylor's avatar
      Remove leftover page_num variable (Archit Baweja) · 6f627e53
      Owen Taylor authored
      Thu Aug  7 16:40:21 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtknotebook.c (gtk_notebook_remove): Remove leftover
              page_num variable (Archit Baweja)
      6f627e53
    • Matthias Clasen's avatar
      Use g_strtod() to cope with C libraries with crippled locale support. · 5708dcee
      Matthias Clasen authored
      2003-08-07  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_default_input): Use g_strtod() to cope with C libraries with
      	crippled locale support.  (#115293)
      5708dcee
    • Hans Breuer's avatar
      finally use TrackMouseEvent (only if the new window not known to Gdk) to · 1ea3b450
      Hans Breuer authored
      2003-08-07  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkevents-win32.c : finally use TrackMouseEvent
      	(only if the new window not known to Gdk) to get proper
      	leave notification, and get rid of the wrong placed
      	tooltips, bug #102283
      
      	(gdk_event_translate) : small code reordering to not get
      	GDK_MOTION_NOTIFY for still mouse and get back tooltips on
      	menus, bug #117367
      1ea3b450
    • Tor Lillqvist's avatar
      gdk/gdk.def Add missing function, trivially implement. · 209dc33b
      Tor Lillqvist authored
      2003-08-07  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdk.def
      	* gdk/win32/gdkfont-win32.c (gdk_fontset_load_for_display): Add
      	missing function, trivially implement.
      209dc33b
  3. 06 Aug, 2003 3 commits
  4. 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
      d2c64e30
    • Matthias Clasen's avatar
      Add bug number. · 7ef86d23
      Matthias Clasen authored
      7ef86d23
    • 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)
      411821fa
  5. 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
      	algorithm.(#116649)
      094657e8
    • 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"
      	property
      
      	* 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
      6f6d3a22
    • 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)
      72f11163
    • 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)
      b9987ad7
  6. 03 Aug, 2003 1 commit
  7. 02 Aug, 2003 4 commits
    • Matthias Clasen's avatar
      Use g_setenv() instead of putenv(). · 0df78ed7
      Matthias Clasen authored
      0df78ed7
    • 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.
      88c1c946
    • 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)
      	(palette_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.
      3d4c726c
    • 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.
      3dc24f58
  8. 01 Aug, 2003 5 commits
  9. 31 Jul, 2003 5 commits
  10. 30 Jul, 2003 2 commits
  11. 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.
      1144aa35
    • 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,
      	though.
      
      	* 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.
      09f777e5
    • 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
      	branched.
      
      	* gtk/gtktoolbar.h: deprecate gtk_toolbar_unset_icon_size()
      05ce8747