summaryrefslogtreecommitdiff
path: root/gdk
Commit message (Collapse)AuthorAgeFilesLines
* Hook up gtk-menu-bar-accel to an XSetting, Gtk/MenuBarAccel. (#120859,Matthias Clasen2004-07-211-4/+5
| | | | | | | Tue Jul 20 23:11:23 2004 Matthias Clasen <maclas@gmx.de> * gdk/x11/gdkevents-x11.c: Hook up gtk-menu-bar-accel to an XSetting, Gtk/MenuBarAccel. (#120859, Scott James Remnant)
* Fix a warning message.Matthias Clasen2004-07-171-1/+1
|
* Use 'cannot' instead of 'can not' in messages. (#144226, Morten Welinder)Matthias Clasen2004-07-151-1/+1
| | | | | | | | Thu Jul 15 19:20:05 2004 Matthias Clasen <maclas@gmx.de> * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): * gtk/gtkcalendar.c (gtk_calendar_class_init): Use 'cannot' instead of 'can not' in messages. (#144226, Morten Welinder)
* Do an empty begin_paint_region()/end_paint() for windows withoutSoeren Sandmann2004-07-122-27/+35
| | | | | | | | | | | Tue Jul 13 00:40:29 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gdk/gdkwindow.c (gdk_window_process_updates_internal): Do an empty begin_paint_region()/end_paint() for windows without EXPOSURE_MASK. * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_unset_bg, _gdk_x11_window_tmp_reset_bg): Remove checks for EXPOSURE_MASK.
* Include the update_counter check in the HAVE_XSYNC condition, sinceMatthias Clasen2004-07-121-2/+2
| | | | | | | | Mon Jul 12 01:56:26 2004 Matthias Clasen <maclas@gmx.de> * gdk/x11/gdkwindow-x11.c (gdk_toplevel_x11_free_contents): Include the update_counter check in the HAVE_XSYNC condition, since update_counter isn't present in the !HAVE_XSYNC case.
* Bug 143330, support update counter spec.Soeren Sandmann2004-07-118-20/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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()
* Insert checks for root window. The root window is never mapped.Soeren Sandmann2004-07-091-4/+12
| | | | | | | Sat Jul 10 01:55:29 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_{re|un}set_bg): Insert checks for root window. The root window is never mapped.
* Fix a warning Actually unset bg.Soeren Sandmann2004-07-091-5/+10
| | | | | | | | Sat Jul 10 01:06:05 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gdk/x11/gdkwindow-x11.c (post_unmap): Fix a warning * gdk/x11/gdkwindow-x11.c (show_window_internal): Actually unset bg.
* Bug 113310.Soeren Sandmann2004-07-093-58/+190
| | | | | | | | | | | | | | | | | | | | | | Sat Jul 10 00:37:45 2004 Soeren Sandmann <sandmann@daimi.au.dk> Bug 113310. * gdk/x11/gdkwindow-x11.c (_gdk_x11_window_tmp_{un|re}set_bg): New functions that can do a recursive unset/reset bg. * gdk/x11/gdkgeometry-x11.c: Remove gdk_window_tmp_{un|re}set_bg(). * gdk/x11/gdkwindow-x11.c (pre_unmap, post_unmap): New functions called before and after unmapping a window. They unset the background of all other windows to prevent flicker from the X server repainting the background. post_unmap() also invalidates the parent of the unmapped window to draw it without roundtrips. * gdk/x11/gdkwindow-x11.c (show_window_internal): Unset background of newly mapped windows and all desendants to prevent flicker.
* have a dummy case GDK_OWNER_CHANGE in switch statements to avoid gccManish Singh2004-07-092-0/+4
| | | | | | | | | | Fri Jul 9 15:33:55 2004 Manish Singh <yosh@gimp.org> * gdk/gdkevents.c: have a dummy case GDK_OWNER_CHANGE in switch statements to avoid gcc warnings about not all enum values handled. * gdk/x11/gdkdisplay-x11.c (gdk_display_open): ignore should live in #ifdef HAVE_XFIXES.
* Add an "override_redirect" bit.Soeren Sandmann2004-07-092-15/+64
| | | | | | | | | | | | | | | | | Fri Jul 9 23:26:09 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gdk/x11/gdkwindow-x11.h (struct _GdkWindowImplX11): Add an "override_redirect" bit. * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set it here. * gdk/x11/gdkwindow-x11.c (gdk_window_move, gdk_window_resize, gdk_window_move_resize): Update the local size/position cache immediately for override redirect windows. * gdk/x11/gdkwindow-x11.c (show_window_internal): Invalidate newly mapped child and override redirect windows.
* Fix typo; tmp_event -> temp_event.Federico Mena Quintero2004-07-091-1/+1
| | | | | | | 2004-07-09 Federico Mena Quintero <federico@ximian.com> * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Fix typo; tmp_event -> temp_event.
* Don't leak references to the drag context. (#144324, Alex Larsson)Matthias Clasen2004-07-081-1/+4
| | | | | | | 2004-07-08 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Don't leak references to the drag context. (#144324, Alex Larsson)
* Fix a 64bit alignment issue. (#144302, Sunil)Matthias Clasen2004-07-071-5/+6
| | | | | | | Tue Jul 6 22:58:00 2004 Matthias Clasen <maclas@gmx.de> * gdk/x11/gdkwindow-x11.c (gdk_x11_window_set_user_time): Fix a 64bit alignment issue. (#144302, Sunil)
* gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text)Tor Lillqvist2004-07-078-590/+300
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-07-07 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_text) * gdk/win32/gdkfont-win32.c (gdk_text_extents) * gdk/win32/gdkproperty-win32.c (find_common_locale, gdk_property_change) * gdk/win32/gdkselection-win32.c (gdk_selection_convert): Use g_utf8_to_utf16() instead of the removed _gdk_utf8_to_ucs2() (see below). * gdk/win32/gdkglobals-win32.c * gdk/win32/gdkmain-win32.c (_gdk_windowing_init) * gdk/win3/gdkprivate-win32.h: Add a variable for the TARGETS atom. Initialize it. Declare it. Drop the variable for the COMPOUND_TEXT atom. * gdk/win32/gdkim-win32.c (gdk_wcstombs): Don't return UTF-8. This function is supposed to return the string in the locale's charset and encoding. Use g_convert(). (gdk_mbstowcs): Similarily, don't take an UTF-8 string, but a string in the locale's charset. Use g_convert(). (_gdk_ucs2_to_utf8, _gdk_utf8_to_wcs, _gdk_utf8_to_ucs2): Delete. The UCS-2 functions didn't handle surrogates anyway. Use GLib's UTF-16 functions instead. Windows uses UTF-16. * gdk/win32/gdkprivate-win32.h: Remove declarations of the deleted functions mentioned above. * gdk/win32/gdkproperty-win32.c (gdk_property_change): Use CF_TEXT also if the string is of type STRING, i.e. ISO-8859-1, and the current codepage is 1252, and contains no C1 chars. Accept also UTF8_STRING. * gdk/win32/gdkselection-win32.c (_gdk_selection_property_store): Mark as static. When storing STRING data, convert to Latin-1. (#140537) (gdk_selection_owner_set_for_display): Now that STRING is always ISO-8859-1, use UTF8_STRING when sending the selection request to ourselves. (gdk_selection_convert): Handle also UTF8_STRING. (#140537, John Ehresman) (gdk_text_property_to_text_list_for_display): Make work more like X11 version. Do obey the encoding parameter. (gdk_string_to_compound_text_for_display, gdk_utf8_to_compound_text_for_display): Don't even pretend supporting COMPOUND_TEXT. (gdk_utf8_to_string_target): Convert to ISO-8859-1, like on X11. (sanitize_utf8): Zero-terminate string.
* Fix win32 build problem w/o wintab. Fixed #145242J. Ali Harlow2004-07-011-1/+1
| | | | | | | 2004-07-01 J. Ali Harlow <ali@juiblex.co.uk> * gdk/win32/gdkinput-win32.c (_gdk_input_ungrab_pointer): Fix win32 build problem w/o wintab. Fixed #145242
* Handle _NET_WM_STATE_ABOVE and _NET_WM_STATE_BELOW. (#144851, Billy Biggs)Matthias Clasen2004-06-261-0/+14
| | | | | | | | Sat Jun 26 01:15:40 2004 Matthias Clasen <maclas@gmx.de> * gdk/x11/gdkwindow-x11.c (set_initial_hints): Handle _NET_WM_STATE_ABOVE and _NET_WM_STATE_BELOW. (#144851, Billy Biggs)
* reviewed by: Matthias Clasen <maclas@gmx.de>Bastien Nocera2004-06-251-6/+20
| | | | | | | | | | 2004-06-25 Bastien Nocera <hadess@hadess.net> reviewed by: Matthias Clasen <maclas@gmx.de> * gdk/x11/gdkkeys-x11.c: (get_symbol), (update_keymaps), (gdk_keymap_lookup_key), (translate_keysym): fix keys parsing when the number of keysyms per keycode is odd. Fixes #144808.
* Doc updates.Matthias Clasen2004-06-222-2/+204
|
* Merge from stable:Michael Natterer2004-06-213-53/+72
| | | | | | | | | | | | | 2004-06-21 Michael Natterer <mitch@gimp.org> Merge from stable: * gdk/x11/gdkdrawable-x11.[ch]: made convert_format() utility function public as _gdk_x11_convert_to_format(). * gdk/x11/gdkcursor-x11.c (create_cursor_image): premultiply the pixels from the GdkPixbuf when putting them in the Xcursor image. Fixes bug #144350.
* Fix off-by-one allocation errors. (#143337, Billy Biggs)Matthias Clasen2004-05-281-2/+2
| | | | | | | Fri May 28 14:20:17 2004 Matthias Clasen <maclas@gmx.de> * gdk/x11/gdkevents-x11.c: Fix off-by-one allocation errors. (#143337, Billy Biggs)
* Set bits within visual->depth that aren't used for color to 1s, in caseOwen Taylor2004-05-271-1/+7
| | | | | | | | Thu May 27 16:36:22 2004 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): Set bits within visual->depth that aren't used for color to 1s, in case they are alpha.
* Send key modifiers (shift, ctrl etc) in button and motion events from theRobert Ögren2004-05-271-37/+51
| | | | | | | | | | | | | | 2004-05-26 Robert Ögren <gtk@roboros.com> * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Send key modifiers (shift, ctrl etc) in button and motion events from the tablet. (#143240) 2004-05-26 Robert Ögren <gtk@roboros.com> * gdk/win32/gdkinput-win32.c (gdk_device_get_state): Simple implementation for extended input devices using last known device state (#143237)
* Don't propagate mouse events to windows that want extended input events.Robert Ögren2004-05-242-46/+96
| | | | | | | | | | | | | | | | | | | 2004-05-11 Robert Ögren <gtk@roboros.com> * gdk/win32/gdkevents-win32.c (propagate): Don't propagate mouse events to windows that want extended input events. (#142943) (gdk_event_translate): Move check for extended input devices to propagate, new parameter to propagate. (gdk_pointer_grab, gdk_display_pointer_ungrab): Enable calls to _gdk_input_(un)grab_pointer. (#142943) * gdk/win32/gdkinput-win32.c (_gdk_input_other_event): Check for input grab. [Fix missing update of impl in "dijkstra" event propagation loop] Drop the parallel "impl" pointer, just use a cast. Don't propagate beyond windows that want normal input events. (#142943) (gdk_input_grab_pointer, gdk_input_ungrab_pointer): Limited implementation of input grab. (#142943)
* Remove duplicated line. (Spotted by Benoît Carpentier.)Tor Lillqvist2004-05-221-1/+0
| | | | | | | 2004-05-22 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkinput-win32.c (print_lc): Remove duplicated line. (Spotted by Benoît Carpentier.)
* Check for XFIXES extension.Matthias Clasen2004-05-185-3/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-18 Matthias Clasen <mclasen@redhat.com> * configure.in: Check for XFIXES extension. * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a gboolean have_xfixes member. * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Register XFIXES events and set have_xfixes. * gdk/gdkevents.h (GdkEventType): Add GDK_OWNER_CHANGE. (GdkEventOwnerChange): New event struct for owner change events. (GdkOwnerChange): New enum for the reason field of GdkEventOwnerChange. * gdk/x11/gdkevents-x11.c (gdk_event_translate): Translate XFixesSelectionNotify events into GdkEventOwnerChange events. * gdk/gdkdisplay.h: * gdk/x11/gdkdisplay-x11.c (gdk_display_supports_selection_notification): (gdk_display_request_selection_notification): New api to support selection ownership notification. * gtk/gtkclipboard.h: * gtk/gtkclipboard.c (_gtk_clipboard_handle_event): New private api to handle owner change events. (clipboard_peek): Refactored out the body of gtk_clipboard_get_for_display() for use in _gtk_clipboard_handle_event(). * gtk/gtkmain.c (gtk_main_do_event): Handle GDK_OWNER_CHANGE events by calling _gtk_clipboard_handle_event().
* Put back the ref_count field in the GdkDragContextPrivateWin32 struct (butTor Lillqvist2004-05-151-5/+10
| | | | | | | | | | | 2004-05-15 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkdnd-win32.c: Put back the ref_count field in the GdkDragContextPrivateWin32 struct (but inside ifdef OLE2_DND this time). It is used by the OLE2_DND code, which is unfinished and presumably horribly broken, but still, let's not make it not compile on purpose. Silence some gcc warnings in the OLE2_DND code.
* Add a comment about unused bits.Matthias Clasen2004-05-141-1/+3
| | | | | | | | | | | 2004-05-14 Matthias Clasen <mclasen@redhat.com> * gdk/gdktypes.h (GdkModifierType): Add a comment about unused bits. * gtk/gtkstock.c (real_add, gtk_stock_lookup): Use an unused modifier bit to mark stock item which need to be freed eventually. (#140654, Michal Pasternak, Scott Tsai)
* Add missing call to g_object_ref in Wintab code. (#138341)Robert Ögren2004-05-122-6/+26
| | | | | | | | | | | | | 2004-05-11 Robert Ögren <gtk@roboros.com> * gdk/win32/gdkevents-win32.c (gdk_event_translate): Add missing call to g_object_ref in Wintab code. (#138341) * gdk/win32/gdkinput-win32.c: Fix numerous Wintab problems including unallocated buffers for event->motion.axes and event->button.axes, unsigned wraparound problem in the code for detecting missing press/release events and assigning min instead of max when setting up axes.
* Make static.Matthias Clasen2004-05-104-26/+26
| | | | | | | | | 2004-05-10 Matthias Clasen <mclasen@redhat.com> * gdk/gdkdisplay.c (singlehead_...): * gdk/x11/gdkkeys-x11.c (get_effective_keymap): * gdk/x11/gdkgeometry-x11.c (expose_serial_predicate): * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Make static.
* finally also create the correct mask for 'pseudo mime' iconsHans Breuer2004-05-082-7/+13
| | | | | | | | | | | | | | | | | 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
* Changes to support do-not-focus-on-map hint in conjunction withElijah Newren2004-05-067-16/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add multi-monitor offset. (#141842, John Ehresman)Tor Lillqvist2004-05-051-2/+2
| | | | | | | 2004-05-05 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkdnd-win32.c (gdk_drag_find_window_for_screen): Add multi-monitor offset. (#141842, John Ehresman)
* don't modify the passed in GdkSegment(s) in place, we may get them againHans Breuer2004-05-022-17/+40
| | | | | | | | | | | | | | | | | 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 :)
* Plug memory leak. (#140775, John Ehresman)Tor Lillqvist2004-04-291-1/+3
| | | | | | | 2004-04-29 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkgc-win32.c (gdk_win32_gc_set_dashes): Plug memory leak. (#140775, John Ehresman)
* Use depth - 1 to index the cached gcs, not depth. (#139494)Matthias Clasen2004-04-291-2/+3
| | | | | | | Thu Apr 29 01:09:50 2004 Matthias Clasen <maclas@gmx.de> * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Use depth - 1 to index the cached gcs, not depth. (#139494)
* Docs typo fix.Matthias Clasen2004-04-281-1/+1
| | | | | | 2004-04-28 Matthias Clasen <mclasen@redhat.com> * gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): Docs typo fix.
* Small doc improvement.Matthias Clasen2004-04-231-1/+1
| | | | | | 2004-04-23 Matthias Clasen <mclasen@redhat.com> * gdk/gdkdraw.c (gdk_draw_drawable): Small doc improvement.
* Make set_user_time() static. _-prefix calls ofMatthias Clasen2004-04-232-9/+9
| | | | | | | | | 2004-04-23 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkevents-x11.c (set_user_time): Make set_user_time() static. * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): _-prefix calls of gdk_x11_window_set_user_time().
* Make gdk_keymap_translate_keyboard_state() handle NULL keymaps. (#139715,Soeren Sandmann2004-04-181-32/+23
| | | | | | | | Sun Apr 18 17:06:03 2004 Soeren Sandmann <sandmann@daimi.au.dk> * gdk/x11/gdkkeys-x11.c (get_effective_keymap): Make gdk_keymap_translate_keyboard_state() handle NULL keymaps. (#139715, Torsten Schoenfeld).
* Support for _NET_WM_USER_TIME (bug 115650). Patch by Elijah Newren.Soeren Sandmann2004-04-186-1/+98
| | | | | | | | | | | | | | | | | | Sun Apr 18 16:15:15 2004 Soeren Sandmann <sandmann@daimi.au.dk> Support for _NET_WM_USER_TIME (bug 115650). Patch by Elijah Newren. * gdk/x11/gdkwindow-x11.[ch]: Add new internal function _gdk_x11_set_user_time() to set the _NET_WM_USER_TIME property. * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add user_time field * gdk/x11/gdkdisplay-x11.c: Add _NET_WM_USER_TIME to list of precached atoms. * gdk/x11/gdkinput-x11.c, gdk/x11/gdkevents-x11.c: Set the property on user interaction.
* workaround for bug #137496, the real fix would involve just another smallHans Breuer2004-04-111-2/+4
| | | | | | | | | | 2004-04-11 Hans Breuer <hans@breuer.org> * gdk/win32/gdkspawn-win32.c : workaround for bug #137496, the real fix would involve just another small API breakage, i.e. gdk_spawn_* using GPid not just gint. * gtk/makefile.msc.in : build gtk-win32.res, not gtk.res
* If both Shift and CapsLock pressed, ignore the shift only for lettersTor Lillqvist2004-04-103-7/+14
| | | | | | | | | | | | | | | 2004-04-10 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkkeys-win32.c (gdk_keymap_translate_keyboard_state): If both Shift and CapsLock pressed, ignore the shift only for letters (that would have been affected by the CapsLock). (#139095) * gdk/win32/gdkglobals-win32.c: Disable tablet support by default, seems to be even buggier now than it used to be. (#138341) Initialize _gdk_input_ignore_wintab to TRUE. * gdk/win32/gdkmain-win32.c: Add --use-wintab switch and GDK_USE_WINTAB environment variable to turn on tablet support.
* Handle '--' correctly.Anders Carlsson2004-04-051-1/+1
| | | | | | 2004-04-05 Anders Carlsson <andersca@gnome.org> * gdk/gdk.c (gdk_arg_context_parse): Handle '--' correctly.
* Use X11 semantics for angles. Thanks to Tim Newsham.Tor Lillqvist2004-03-311-15/+11
| | | | | | | 2004-03-31 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkdrawable-win32.c (draw_arc): Use X11 semantics for angles. Thanks to Tim Newsham.
* applied the undisputable and required [due to recent gtkfilesystemHans Breuer2004-03-201-13/+17
| | | | | | | | | | | | | | | 2004-03-20 Hans Breuer <hans@breuer.org> * gtk/gtkfilesystemwin32.c : applied the undisputable and required [due to recent gtkfilesystem internal api semantic changes] part of patches to fix bug #137543 (Tor Lillqvist, J. Ali Harlow) * gdk/gdkevents-win32.c (handle_configure_event) : (gdk_event_translate), WM_WINDOWPOSCHANGED : initialize GdkWindowObject::x, y with screen coords to make gdk_window_get_position () return the right thing and thus fix drag and drop positioning (e.g. Gimp tabs, fixes bug #137192)
* Don't just copy the whole GdkGCWin32 with a single assignment, thatTor Lillqvist2004-03-151-3/+26
| | | | | | | | 2004-03-15 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkgc-win32.c (gdk_gc_copy): Don't just copy the whole GdkGCWin32 with a single assignment, that overwrites GObject's private data (for instance ref_count). (#137012, John Ehresman)
* Don't undefine HAVE_MONITOR_INFO when compiling with gcc. Mingw's headersTor Lillqvist2004-03-132-2/+10
| | | | | | | | | | | | | | 2004-03-13 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkdisplay-win32.c: Don't undefine HAVE_MONITOR_INFO when compiling with gcc. Mingw's headers do have the required definitions. * gdk/win32/gdkdrawable-win32.c (draw_polygon): When drawing filled polygons, don't draw the outline, similarily as draw_rectangle(). Apparently GTK and GIMP don't use gdk_draw_polygon() much (or always draw the outline, too), as this has gone undetected for so long. Thanks to Bruce Hochstetler.
* Make this a total no-op when the new or old parent is destroyed. (#134230,Owen Taylor2004-03-134-75/+114
| | | | | | | | | | | | | | | | | | | | | 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)
* Set also the pointer button bits. (#136636, Dave Neary)Tor Lillqvist2004-03-102-2/+39
| | | | | | | | | | | | | | 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)