1. 26 Sep, 2005 1 commit
    • Tor Lillqvist's avatar
      Set the shaped flag here, too. (#316871) · bca0cefe
      Tor Lillqvist authored
      2005-09-26  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_shape_combine_mask): Set
      	the shaped flag here, too. (#316871)
      	(gdk_window_shape_combine_region): Currently unimplemented, so
      	don't do anything to the shaped flag here.
      bca0cefe
  2. 18 Sep, 2005 1 commit
    • Hans Breuer's avatar
      fix typo for GTK_VER; define HAVE_CONFIG_H cause gtkprogressbar.c has · e5d06c7c
      Hans Breuer authored
      2005-09-18  Hans Breuer  <hans@breuer.org>
      
      	* gtk/makefile.msc.in : fix typo for GTK_VER; define HAVE_CONFIG_H
      	cause gtkprogressbar.c has #include <config.h> conditionally; less
      	noise from generated gtk.def
      	* gtk/stock-icons/makefile.msc gdk/makefile.msc tests/makefile.msc : updated
      
      	* gtk/gtktrayicon-win32.c : dummy implmentation to make gtk compile.
      	For me it works as well as the *NIX implemenation, that is not at all.
      
      	* gdk/win32/gdkproperty-win32.c : implement gdk_atom_intern_static_string()
      
      	* gdk/win32/gdkwindow-win32.c(gdk_window_set_urgency_hint) : only use
      	only use (WINVER >= 0x0500) when available from the SDK. Otherwise fall
      	back to true dynamic linking of FlashWindowEx. Makes gtk+ work on NT4.0
      	again - if compiled properly.
      
      	* tests/teststatusicon.c : don't use GNOME icons for testing, but icons
      	already coming with Gtk+. Makes it compile on win32.
      e5d06c7c
  3. 15 Aug, 2005 1 commit
    • Owen Taylor's avatar
      Handle pixmap == NULL when checking for a colormap. (Allin Cottrell). · 42dc0241
      Owen Taylor authored
      2005-08-15  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap):
              * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap):
              * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap):
              Handle pixmap == NULL when checking for a colormap.
              (Allin Cottrell).
      42dc0241
  4. 12 Aug, 2005 1 commit
    • Owen Taylor's avatar
      gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap) · c24e5e28
      Owen Taylor authored
      2005-08-12  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap)
              * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap)
              * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap): Warn if
              gdk_drawable_get_colormap (pixmap) is NULL and return.
      c24e5e28
  5. 01 Aug, 2005 1 commit
  6. 21 Jul, 2005 1 commit
  7. 03 Jul, 2005 1 commit
    • Hans Breuer's avatar
      updated <io.h> for open() use G_PI instead of M_PI · 19e9165d
      Hans Breuer authored
      2005-07-03  Hans Breuer  <hans@breuer.org>
      
      	* **/makefile.msc[.in] : updated
      	* gtk/gtkiconcache.c : <io.h> for open()
      	* gtk/gtkstyle.c : use G_PI instead of M_PI
      
      	* gdk/win32/gdkcursor-win32.c : implement gdk_cursor_new_from_name()
      	by mapping the lower case win32 api name to the respective cursor.
      	E.g. pass "wait" to get the IDC_WAIT cursor. Also allows to load
      	cursors from named resources in the executable.
      	(gdk_cursor_get_image) : just return NULL for now.
      
      	* gdk/win32/gdkgeometry-win32.c : implement gdk_window_move_region()
      	by delegation to ScollWindowEx(), untested.
      
      	* gdk/win32/gdkwindow-win32.c : stub for gdk_window_set_urgency_hint()
      19e9165d
  8. 04 Jun, 2005 1 commit
    • Tor Lillqvist's avatar
      gdk/win32/gdkcursor-win32.c gdk/win32/gdkwindow-win32.c Support · d42fa02b
      Tor Lillqvist authored
      2005-06-04  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkcursor-win32.c
      	* gdk/win32/gdkwindow-win32.c
      	* gdk/win32/gdkprivate-win32.h: Support full-colour cursors.
      	Support cursors with alpha on XP. Use code in common with the
      	support for alpha icons that already was present. (#306101, Tim
      	Evans)
      d42fa02b
  9. 03 Apr, 2005 1 commit
    • Hans Breuer's avatar
      [merged from gtk-2-6 branch] let dash_offset shift the start of the line · 0ba6aed7
      Hans Breuer authored
      2005-04-03  Hans Breuer  <hans@breuer.org>
      
      	[merged from gtk-2-6 branch]
      	* gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of
      	the line pattern not the start of the line. Fixes bug #171641.
      
      	* gtk/makefile.msc.in : follow .symbols changes
      
      	* gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor()
      	dynamically. (It is not available in _WIN_VER <= 0x0400)
      
      	* gdk/win32/makefile.msc : removed gdkpango-win32.obj
      
      	* gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI
      
      	[also applied to gtk-2-6 branch]
      	* gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def
      
      	* gdk/makefile.msc.in : add gtkmnemonichash.obj
      
      	* test/testgtk.c(set_parent_signal) : use g_message instead of
      	g_print to keep the 'testgtk --bench=all' output clean
      0ba6aed7
  10. 18 Mar, 2005 1 commit
    • Owen Taylor's avatar
      Use cairo_set_device_offset(). · 368f15ca
      Owen Taylor authored
      2005-02-24  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkwindow.c: Use cairo_set_device_offset().
      
      	* gdk/win32/gdkdrawable-win32.[ch] gdk/win32/gdkwindow-win32.c
      	gdk/win32/gdkpixmap-win32.c:
      	Add_gdk_win32_drawable_acquire/release_dc() to get a DC for the
      	drawable. Add _gdk_drawable_win32_finish() to clean up resources
      	when a drawable is destroyed.
      
      	* gdk/win32/gdkgc-win32.c gdk/win32/gdkdrawable-win32.c
      	(blit_from_pixmap) gdk/win32/gdkprivate-win32.h : Use
      	acquire/release_dc when getting a DC to use with a GC or for
      	blitting from a pixmap.
      
      	* gdk/win32/gdkdrawable-win32.[ch]: Implement ref_cairo_surface()
      
      	* gdk/win32/gdkpango-win32.c gdk/win32/gdkdrawable-win32.c Makefile.am:
      	Remove gdk_screen_get_pango_context(), draw_glyph[_transformed]
      	implementations.
      
      	* gdk/win32/gdkdrawable-win32.c: Remove
      	gdk_draw_rectangle_alpha_libgtk_only()
      368f15ca
  11. 16 Mar, 2005 2 commits
    • Tor Lillqvist's avatar
      gdk/win32/gdkprivate-win32.h Drop global variable _gdk_root_window, just · 34bfd712
      Tor Lillqvist authored
      2005-03-16  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkprivate-win32.h
      	* gdk/win32/*.c: Drop global variable _gdk_root_window, just call
      	GetDesktopWindow(). Rename the GdkWindow* _gdk_parent_root to
      	_gdk_root.
      
      	* gdk/win32/gdkwindow-win32.h (GdkWindowImplWin32): Add
      	toplevel_window_type field.
      
      	* gdk/win32/gdkwindow-win32.c: As there is only one root
      	window in GDK on Win32, we can compare directly to _gdk_root
      	instead of checking the window type.
      	(gdk_window_reparent): When reparenting a child of the desktop
      	clear out the window decorations. Correspondingly, when
      	reparenting to the desktop, add decorations. As in the X11
      	backend, save the window type of a toplevel window when
      	reparenting, in case it is reparented back to toplevel.
      34bfd712
    • Tor Lillqvist's avatar
      Print debugging output only if asked for, not always. · df9768cf
      Tor Lillqvist authored
      2005-03-16  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkdisplay-win32.c (_win32_on_clipboard_change): Print
      	debugging output only if asked for, not always.
      
      	* gdk/win32/*.c: Use the %+d%+d format for coordinate pairs in
      	debugging printout instead of +%d+%d. Misc other additions and
      	cosmetic improvements to debugging printouts. Use API_CALL() and
      	GDI_CALL() macros in more places.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_move, gdk_window_resize,
      	gdk_window_move_resize): To detect child windows, check whether
      	the real parent is not the desktop window, instead of relying on
      	the GDK window type being GDK_WINDOW_CHILD. Foreign GtkPlug
      	windows have a GDK window type GDK_WINDOW_FOREIGN, but are still
      	de facto child windows.
      df9768cf
  12. 15 Mar, 2005 1 commit
    • Tor Lillqvist's avatar
      New debugging function. As GetKeyNameText() returns a localized key name · 7c12edeb
      Tor Lillqvist authored
      2005-03-15  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkmain-win32.c (_gdk_win32_key_to_string): New
      	debugging function. As GetKeyNameText() returns a localized key
      	name we need to convert it to UTF-8.
      
      	* gdk/win32/gdkprivate-win32.h: Declare it.
      
      	* gdk/win32/gdkevents-win32.c: Use it.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_new_internal): Fix
      	handling of children of foreign windows. They should be child
      	windows from Windows's perspective, even if they are toplevel GDK
      	windows.
      7c12edeb
  13. 11 Mar, 2005 1 commit
    • Ivan, Wong Yat Cheung's avatar
      Big window fix for Win32. Big windows are still emulated within 16-bit · ad24594d
      Ivan, Wong Yat Cheung authored
      2005-03-12  Ivan, Wong Yat Cheung  <email@ivanwong.info>
      
      	Big window fix for Win32. Big windows are still emulated within
      	16-bit coordinate limits, though. Big windows now work on NT-based
      	Windows. (#169989)
      
      	* gdk/win32/gdkgc-win32.c (_gdk_win32_gdkregion_to_hrgn): Use
      	32-bit coordinates.
      
      	* gdk/win32/gdkgeometry-win32.c: Largely rewrite.
      
      	* gdk/win32/gdkwindow-win32.c: Minor related changes.
      ad24594d
  14. 18 Jan, 2005 1 commit
    • Matthias Clasen's avatar
      Add pointer warping to GDK. (#160437) · 3f8461b7
      Matthias Clasen authored
      2005-01-18  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/gdkdisplay.h:
      	* gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer):
      	* gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
      	pointer warping to GDK.  (#160437)
      
      	* gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
      3f8461b7
  15. 09 Jan, 2005 1 commit
  16. 19 Nov, 2004 1 commit
    • Manish Singh's avatar
      gdk/linux-fb/gdkgc-fb.c gdk/win32/gdkgc-win32.c · 60b30ff5
      Manish Singh authored
      Fri Nov 19 14:54:09 2004  Manish Singh  <yosh@gimp.org>
      
              * gdk/linux-fb/gdkgc-fb.c
              * gdk/win32/gdkgc-win32.c
              * gdk/win32/gdkwindow-win32.c
              * gtk/gtkaboutdialog.c
              * gtk/gtkaction.c
              * gtk/gtkactiongroup.c
              * gtk/gtkcellrendererprogress.c
              * gtk/gtkcellview.c
              * gtk/gtkcolorbutton.c
              * gtk/gtkcombobox.c
              * gtk/gtkcomboboxentry.c
              * gtk/gtkentrycompletion.c
              * gtk/gtkfilechooserbutton.c
              * gtk/gtkmenutoolbutton.c
              * gtk/gtkrc.c
              * gtk/gtksettings.c
              * gtk/gtkstyle.c
              * gtk/gtktoggletoolbutton.c
              * gtk/gtktoolbutton.c
              * gtk/gtktoolitem.c
              * gtk/gtktreemodelfilter.c
              * gtk/gtktreeselection.c
              * gtk/gtktreeviewcolumn.c
              * gtk/gtkuimanager.c: get rid of unnecessary casts.
      
              * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_set_property):
              cast away the const for g_value_set_enum. This is after the g_warning,
              so this is a hack to begin with.
      
              * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_set_property):
              add a cast to GTK_FILE_CHOOSER for impl here.
      60b30ff5
  17. 30 Oct, 2004 1 commit
  18. 15 Sep, 2004 1 commit
    • Tor Lillqvist's avatar
      Remove bogus code that tried to do what the X11 backend does in its · a96d0b38
      Tor Lillqvist authored
      2004-09-15  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents):
      	Remove bogus code that tried to do what the X11 backend does in
      	its version of this function. There are no "frame windows" (for
      	toplevel window decoration) on Windows. The desktop ("root")
      	window is not the parent of a toplevel window. (#152481)
      a96d0b38
  19. 03 Sep, 2004 1 commit
    • Tor Lillqvist's avatar
      List the three theme gtkrc files separately, zip doesn't do anything if · f8ef369e
      Tor Lillqvist authored
      2004-09-03  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk-zip.sh.in: List the three theme gtkrc files separately, zip
      	doesn't do anything if one of the files on its command line
      	doesn't exist.
      
      	Handle changes of screen resolution on Win32. (#151581, reported by
      	Arjohn Kampman)
      
      	* gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_init,
      	_gdk_root_window_size_init): Factor out setting the root window's
      	size (as the size of the union of all monitors) to a new function.
      
      	* gdk/win32/gdkdisplay-win32.c (gdk_display_open,
      	_gdk_monitor_init): Factor out the monitor query to a new
      	function.
      
      	* gdk/win32/gdkprivate-win32.h: Declare above new functions.
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate,
      	handle_display_change): Handle WM_DISPLAYCHANGE by calling the
      	above two functions, and emitting the "size_changed" signal on our
      	(only) GdkScreen.
      f8ef369e
  20. 22 Aug, 2004 1 commit
    • Tor Lillqvist's avatar
      Don't show TEMP windows in the Task Manager. Implement by calling · 7ed263a2
      Tor Lillqvist authored
      2004-08-22  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_new_internal,
      	gdk_window_new, gdk_window_set_skip_taskbar_hint): Don't show TEMP
      	windows in the Task Manager. Implement by calling
      	gdk_window_set_skip_taskbar_hint(TRUE) on them. (#145481, Tim
      	Evans)
      7ed263a2
  21. 09 Aug, 2004 1 commit
    • Hans Breuer's avatar
      autogenerate gtk.def, cleanup · 2c3388b7
      Hans Breuer authored
      2004-08-09  Hans Breuer  <hans@breuer.org>
      
      	* gtk/makefile.msc.in : autogenerate gtk.def, cleanup
      
      	* gdk/win32/gdkwindow-win32.c gdk/win32/gdkevents-win32.c :
      	removed long time unused ifdef/ed code (WITHOUT_WM_CREATE),
      	removed duplicated call to gdk_window_set_cursor()
      2c3388b7
  22. 06 Aug, 2004 1 commit
    • Hans Breuer's avatar
      make it compile and more similar to the X11 implementation [backward · 74051776
      Hans Breuer authored
      2004-08-06  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkwindow-win32.c : make it compile and more
      	similar to the X11 implementation [backward compatibility
      	for GDK_WINDOW_TEMP, GDK_INPUT_ONLY (fixes bug #148702),
      	use the *screen* function variants, dont reparent already
      	destroyed]
      	(get_visible_region) : take the win32 part into account
      	(_gdk_windowing_window_destroy) : remove from handle table
      
      	* gdk/win32/gdkdisplay-win32.c : added
      	gdk_display_(request|supports)_selection_notification ()
      	with a currently mostly pointless implementation ;-)
      
      	* gtk/gtkfilesystemwin32.c (*_to_path) : same changes as on *NIX,
      	plugs memory leak
      	(gtk_file_system_win32_render_icon) : use new GTK_STOCK_DIRECTORY
      
      	* gtk/makefile.msc.in demos/gtk-demo/makefile.msc.in
      	  gtk/stock-icons/makefile.msc tests/makefile.msc : updated
      
      	* gdk/gdk.def gtk/gtk.def : updated externals
      
      	* tests/testiconview.c : remove unneeded dirent.h inclusion
      74051776
  23. 11 Jul, 2004 1 commit
    • Soeren Sandmann's avatar
      Bug 143330, support update counter spec. · 1a5e92dd
      Soeren Sandmann authored
      Sun Jul 11 15:24:03 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	Bug 143330, support update counter spec.
      
      	* configure.in: Add check for the Sync extension
      
      	* gdk/gdkwindow.h: gdk_window_enable_synchronized_configure() and
      	gdk_window_configure_finished()
      
      	* gtk/gtkwindow.c (gtk_window_move_resize): Call gdk_window_finish_configure().
      	* gtk/gtkwindow.c (gtk_window_realize): Automatically enable
      	synchronized configures.
      
      	* gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store current
      	and pending counter values.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): New function.
      	* gdk/x11/gdkwindow-x11.c
      	(gdk_window_enable_synchronized_configure): New function.
      	* gdk/x11/gdkwindow-x11.c (gdk_toplevel_x11_free_contents):
      	Delete update counter.
      	* gdk/x11/gdkwindow-x11.c (set_wm_protocols): Advertise
      	_NET_WM_SYNC_REQUEST when Sync is available
      
      	* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Handle
      	_NET_WM_SYNC_REQUEST messages
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Save counter
      	value for use by gdk_window_configure_finished() when receiving
      	ConfigureNotifies.
      
      	* gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add use_sync flag
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_open): Check if the XSync
      	extension is available
      	* gdk/x11/gdkdisplay-x11.c: Add _NET_WM_SYNC_REQUEST and
      	_NET_WM_SYNC_REQUEST_COUNTER to list of supported atoms.
      
      	* gdk/linux-fb/gdkwindow-fb.c, gdk/win32/gdkwindow-win32.c: Add
      	stubs for enable_synchronized_configure() and configure_finished()
      1a5e92dd
  24. 08 May, 2004 1 commit
    • Hans Breuer's avatar
      finally also create the correct mask for 'pseudo mime' icons · 805abff3
      Hans Breuer authored
      2004-05-08  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkfilesystemwin32.c (extract_icon) : finally also
      	create the correct mask for 'pseudo mime' icons
      
      	* gdk/win32/gdkwindow-win32.c(show_window_internal) : also
      	take focus_on_map into account
      
      	* gtk/gtkselection.c : g_message() only with DEBUG_SELECTION
      
      	* gtk/gtkactiongroup.c gtk/gtkcombobox.c :
      	... must return a value
      
      	* gdk/gdk.def gtk/gtk.def demos/gtk-demo/makefile.msc.in : updated
      805abff3
  25. 06 May, 2004 1 commit
    • Elijah Newren's avatar
      Changes to support do-not-focus-on-map hint in conjunction with · 5502f77e
      Elijah Newren authored
      2004-05-05  Elijah Newren  <newren@math.utah.edu>
      
      	Changes to support do-not-focus-on-map hint in conjunction with
      	_NET_WM_USER_TIME (#115650):
      
      	* gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
      	field focus_on_map
      
      	* gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
      	set it.
      
      	* gtk/gtkwindow.[hc]: Add a boolean property "focus_on_map"
      	and gtk_window_get_focus_on_map() and gtk_window_set_focus_on_map().
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_new):
      	* gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
      	* gdk/x11/gdkwindow-x11.c (gdk_window_new):
      	Initialize the focus_on_map field to TRUE.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_focus_on_map):
      	* gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_focus_on_map):
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_focus_on_map):
      	* gdk/x11/gdkwindow-x11.c (setup_toplevel_window):
      	Implementations for the various backends. The Win32 and linux-fb
      	implementations set the focus_on_map field, but don't use it yet
      	to actually implement noinput windows. The X implementation sets
      	_NET_WM_USER_TIME to 0 if focus_on_map is FALSE (see the EWMH).
      
      	* gdk/x11/gdkwindow-x11.h:
      	* gdk/x11/gdkevents-x11.c (set_user_time):
      	* gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
      	* gdk/x11/gdkwindow-x11.c (gdk_x11_window_set_user_time):
      	s/_gdk_x11_window_set_user_time/gdk_x11_window_set_user_time/,
      	since we want that function to be part of the public API.
      5502f77e
  26. 02 May, 2004 1 commit
    • Hans Breuer's avatar
      don't modify the passed in GdkSegment(s) in place, we may get them again · 6efc9a6a
      Hans Breuer authored
      2004-05-02  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkdrawable-win32.c (draw_segments) : don't
      	modify the passed in GdkSegment(s) in place, we may get
      	them again to draw at the same place. Fixes bug #129095,
      	bug #137177, ...
      	(draw_segments) draw the end pixel again to get the
      	pixmap mask right, fixes bug #126710, #130202
      
      	* gdk/win32/gdkwindow-win32.c : use SetForegroundWindow,
      	fixes bug #106013, John Ehresman
      
      	* gtk/makefile.msc.in : don't try to link gtk.res but
      	use gtk-win32.res (as supposed to be fixed below :)
      6efc9a6a
  27. 13 Mar, 2004 1 commit
    • Owen Taylor's avatar
      Make this a total no-op when the new or old parent is destroyed. (#134230, · ef5915da
      Owen Taylor authored
      Sat Mar 13 12:17:16 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkwindow-x11.c (gdk_window_reparent): Make
              this a total no-op when the new or old parent is
              destroyed. (#134230, patch from Soeren Sandmann)
      
              * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy):
              For foreign windows in our heirarchy, call
              _gdk_windowing_window_destroy_foreign (window) and skip
              all the normal destruction logic.
      
              * gdk/x11/gdkwindow-x11.c gdk/win32/gdkwindow-win32.c:
              Move code to request destruction of a foreign window
              code into a separate _gdk_windowing_window_destroy_foreign().
      
              * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_finalize):
              Call GDK_WINDOW_DISPLAY() on the wrapper not on the
              impl. (Also from Soeren's patch)
      ef5915da
  28. 10 Mar, 2004 1 commit
    • Tor Lillqvist's avatar
      Set also the pointer button bits. (#136636, Dave Neary) · 6e5d9597
      Tor Lillqvist authored
      2004-03-10  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkevents-win32.c (build_key_event_state): Set also
      	the pointer button bits. (#136636, Dave Neary)
      
      	* gdk/win32/gdkwindow-win32.c (show_window_internal): Show
      	transparent (input only) windows using SetWindowPos(). (#132331,
      	John Ehresman)
      
      	(gdk_window_set_type_hint): For splash screens, remove the resize
      	handles, menu, and minimize/maximize/close buttons. (#132896)
      6e5d9597
  29. 06 Mar, 2004 1 commit
  30. 05 Mar, 2004 1 commit
    • Tor Lillqvist's avatar
      Add missing entries, thanks to J. Ali Harlow. · 72d622fc
      Tor Lillqvist authored
      2004-03-05  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdk.def: Add missing entries, thanks to J. Ali Harlow.
      
      	* gdk/win32/gdkcursor-win32.c (color_is_white): const-correctness.
      
      	(gdk_cursor_new_from_pixbuf): Copy of the non-Xcursor X11
      	implementation.
      
      	(gdk_display_supports_cursor_alpha,
      	gdk_display_supports_cursor_color): Dummy implementations.
      
      	(gdk_display_get_default_cursor_size,
      	gdk_display_get_maximal_cursor_size): Implement.
      
      	* gdk/win32/gdkdisplay-win32.c (gdk_display_get_default_group):
      	Dummy implementation.
      
      	* gdk/win32/gdkevents-win32.c (gdk_net_wm_supports): Dummy
      	implementation.
      
      	* gdk/win32/gdkfont-win32.c (gdk_font_get_display): Implement.
      
      	* gdk/win32/gdkinput-win32.c (gdk_input_motion_events): Remove,
      	not in API.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_get_group): Dummy
      	implementation.
      72d622fc
  31. 26 Jan, 2004 1 commit
    • Federico Mena Quintero's avatar
      Fix #105497; constify uses of GdkColor. · 5ebb6b04
      Federico Mena Quintero authored
      2004-01-26  Federico Mena Quintero  <federico@ximian.com>
      
      	Fix #105497; constify uses of GdkColor.
      
      	* gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify.
      	(gdk_gc_set_rgb_bg_color): Constify.
      	(gdk_gc_set_foreground): Constify.
      
      	* gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify.
      	* gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify.
      	* gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify.
      
      	* gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify.
      	* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify.
      	* gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify.
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify.
      	* gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify.
      
      	* gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify.
      	(gdk_draw_layout_with_colors): Constify.
      
      	* gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify.
      	(gdk_pixmap_colormap_create_from_xpm): Constify.
      	(gdk_pixmap_create_from_xpm): Constify.
      	(gdk_pixmap_colormap_create_from_xpm_d): Constify.
      	(gdk_pixmap_create_from_xpm_d): Constify.
      
      	* gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify.
      
      	* gtk/gtkclist.c (gtk_clist_set_foreground): Constify.
      	(gtk_clist_set_background): Constify.
      
      	* gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify.
      	(gtk_color_button_set_color): Constify.
      
      	* gtk/gtkcolorsel.c (gtk_color_selection_set_current_color):
      	Constify and add a check for color != NULL.
      	(gtk_color_selection_get_current_color): Add a check for color != NULL.
      	(gtk_color_selection_set_previous_color): Constify and add a check
      	for color != NULL.
      	(gtk_color_selection_get_previous_color): Add a check for color != NULL.
      
      	* gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify.
      	(gtk_ctree_node_set_background): Constify.
      
      	* gtk/gtktext.c (gtk_text_insert): Constify.
      	(insert_text_property): Constify.
      	(text_properties_equal): Constify.
      	(new_text_property): Constify.
      
      	* gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify.
      	(gtk_widget_modify_fg): Constify.
      	(gtk_widget_modify_bg): Constify.
      	(gtk_widget_modify_text): Constify.
      	(gtk_widget_modify_base): Constify.
      5ebb6b04
  32. 04 Jan, 2004 1 commit
    • Hans Breuer's avatar
      use SWP_NOACTIVATE in gdk_window_set_keep_(above|below) to make DND work · 5f987629
      Hans Breuer authored
      2004-01-04  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkwindow-win32.c : use SWP_NOACTIVATE in
      	gdk_window_set_keep_(above|below) to make DND work again.
      	Thanks to Alif Wahid for noticing.
      
      	* gdk/gdk.def : update externals
      
      	* gtk/gtkfilesystemwin32.c : adapt to GtkFileSystemIFace changes
      
      	* gtk/gtk-stock.[hc] gtk/gtkiconfactory.c
      	  gtk/stock-icons/Makefile.am gtk/stock-icons/makefile.msc :
      	  gtk/stock-icons/stock_harddisk_16.png
      	  gtk/stock-icons/stock_harddisk_24.png
      	Harddisk stock icons for file system implementations. Beside
      	FLOPPY and CDROM there is now HARDDISK, probably some
      	GTK_STOCK_NETWORK would be useful, but I could not find one.
      5f987629
  33. 14 Dec, 2003 3 commits
    • Hans Breuer's avatar
      handle GTK_DATADIR similar as the other filesystem placement 'constants' · 4acd98a8
      Hans Breuer authored
      2003-12-14  Hans Breuer  <hans@breuer.org>
      
      	* gtk/gtkprivate.h gtk/gtkmain.c : handle GTK_DATADIR
      	similar as the other filesystem placement 'constants' (dynamic
      	resolving on win32)
      
      	* gtk/gtkfilechooserwidget.c : handle file system to win32
      	renaming here as will
      	* gtk/gtkfilesystemwin32.c : implement render_icon
      
      	* gtk/gtk.def gdk/gdk.def : updated externals
      
      	* gdk/win32/gdkdisplay-win32.c : make it compile without
      	<multimon.h> - i.e. even older sdk
      
      	* gdk/win32/gdkevents-win32.c : match resize_timer_proc
      	with TIMERPROC prototype
      
      	* gdk/win32/gdkwindow-win32.c : older msvc does not know
      	BITMAPV5HEADER (from win xp) either
      
      	* gtk/gtkimmodule.c : make it compile even if GTK_LOCALEDIR is
      	not defined
      
      	* tests/testfilechooser.c : recent GLib crashes on
      	g_print ("%s", NULL) so avoid this
      4acd98a8
    • Tor Lillqvist's avatar
      Merge from stable: · 5cd59c1c
      Tor Lillqvist authored
      2003-12-14  Tor Lillqvist  <tml@iki.fi>
      
      	Merge from stable:
      
      	* 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_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_TOOLWINDOW, implement by setting/unsetting
      	the window's owner. Fixes #118093, reported by Maxime Romano.
      5cd59c1c
    • Tim Evans's avatar
      Implement gdk_window_set_icon_list() for Win32, with support for big and · d858f3b5
      Tim Evans authored
      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)
      d858f3b5
  34. 10 Dec, 2003 1 commit
    • Matthias Clasen's avatar
      Changes to allow "no input" windows (#64613): · 5fb61f30
      Matthias Clasen authored
      Thu Dec 11 00:35:12 2003  Matthias Clasen  <maclas@gmx.de>
      
      	Changes to allow "no input" windows (#64613):
      
      	* gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean
      	field accept_focus.
      
      	* gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to
      	set it.
      
      	* gtk/gtkwindow.[hc]: Add a boolean property "accept_focus"
      	and gtk_window_get_focus() and gtk_window_set_focus().
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_new):
      	* gdk/linux-fb/gdkwindow-fb.c (gdk_window_new):
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_new):
      	Initialize the accept_focus field to TRUE.
      
      	* gdk/win32/gdkwindow-win32.c (gdk_window_set_accept_focus):
      	* gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_accept_focus):
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_accept_focus):
      	Implementations for the various backends. The Win32 and linux-fb
      	implementations set the accept_focus field, but don't use it yet
      	to actually implement noinput windows. The X implementation updates
      	the WM_HINTS to select the globally active input model (see the
      	ICCCM) if accept_focus is FALSE.
      
      	* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Ignore the
      	WM_TAKE_FOCUS message if accept_focus is FALSE.
      5fb61f30
  35. 07 Dec, 2003 1 commit
  36. 15 Nov, 2003 2 commits
    • Hans Breuer's avatar
      updated added all the new tests · 947b32b7
      Hans Breuer authored
      2003-11-15  Hans Breuer  <hans@breuer.org>
      
      	* gdk/makefile.msc gdk/gdk.def
                  gtk/gtk.def gtk/makefile.msc.in : updated
      	* tests/makefile.msc : added all the new tests
      
      	* gtk/gtkfilefilter.c(finalize) : initialize filter
      	from object not from itself
      
      	* gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc]
      	modified as less as posible to have aworking implementation
      	on win32. There maybe the desire to merge the unchanged pats into
      	a common base class.
      	Also implemented a simple glib based bookmark handling, which
      	is currently missing in gtkfilesystemunix.[hc] but can be copied
      	over there.
      	* gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h
      
      	* gdk/win32/gdkwindow-win32.c : implement
      	gdk_window_set_keep_above() and gdk_window_set_keep_below()
      
      	* tests/testmerge.c : don't include unistd.h unconditionally,
      	#define STDOUT_FILENO if it isn't defined
      
      	* tests/testfilechooser.c : make it compile on win32
      947b32b7
    • Tor Lillqvist's avatar
      If the window is maximized, use SW_SHOWMAXIMIZED. (#126986, John Ehresman) · 4c860a0d
      Tor Lillqvist authored
      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)
      4c860a0d