summaryrefslogtreecommitdiff
path: root/gdk
Commit message (Collapse)AuthorAgeFilesLines
* reorder one include so they are all alphabetical.Michael Natterer2008-04-181-2/+2
| | | | | | | | | 2008-04-18 Michael Natterer <mitch@imendio.com> * gdk/gdk.h: reorder one include so they are all alphabetical. svn path=/trunk/; revision=20022
* Don't call XFreeColormap on foreign colormapsMatthias Clasen2008-04-031-2/+3
| | | | svn path=/trunk/; revision=19969
* Defer the generated event to the mainloop and don't generate one at all ifRichard Hult2008-03-314-46/+113
| | | | | | | | | | | | | | | | | | | | | | | | 2008-03-28 Richard Hult <richard@imendio.com> * gdk/quartz/gdkevents-quartz.c: (gdk_event_translate), (_gdk_quartz_events_trigger_crossing_events): Defer the generated event to the mainloop and don't generate one at all if the toplevel didn't change. Use the actual window and not the toplevel as event window. These changes make the generated crossing events match the X11 behavior and fixes issues with e.g. tooltips, comboboxes and menus. * gdk/quartz/GdkQuartzView.c: Don't update the tracking rect if the view has no window, it will be updated as soon as it's put inside a window. * gdk/quartz/gdkwindow-quartz.c: (_gdk_quartz_window_debug_highlight): Make it possible to track multiple windows with debug highlighting. (show_window_internal): Remove workaround for tooltips and popups that is no longer needed with the above changes. svn path=/trunk/; revision=19951
* Bail out early if we can't find a matching window.Richard Hult2008-03-252-2/+5
| | | | | | | | | | | | | | | 2008-03-25 Richard Hult <richard@imendio.com> * gdk/quartz/gdkevents-quartz.c: (_gdk_quartz_events_trigger_crossing_events): Bail out early if we can't find a matching window. * gdk/quartz/gdkwindow-quartz.c: (show_window_internal): Add a comment, and only trigger an event for non-temp windows, fixes problems for tooltips caused by the workarounds for the problematic tracking rect API. svn path=/trunk/; revision=19934
* Plug a leak and add a check that we have a toplevel before accessing it.Richard Hult2008-03-251-13/+19
| | | | | | | | | | 2008-03-25 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: (gdk_window_quartz_process_all_updates): Plug a leak and add a check that we have a toplevel before accessing it. svn path=/trunk/; revision=19933
* Bug 524151 - Dragging of 0-byte files results in an empty filename onTor Lillqvist2008-03-241-8/+13
| | | | | | | | | | | | | | | | | | | 2008-03-24 Tor Lillqvist <tml@novell.com> Bug 524151 - Dragging of 0-byte files results in an empty filename on Windows XP and above * gdk/win32/gdkdnd-win32.c (resolve_link): Check for the file being empty first. For some reason ISHellLink and IPersistFile succeeds in interpreting empty files as shortcuts, claiming the target of the shortcut is an empty path. Change the function to take the wide character file name that the caller already has anyway, to avoid a superfluous conversion from UTF-8 to UTF-16. svn path=/trunk/; revision=19931
* Check window state for GDK_WINDOW_STATE_ICONIFIED before doing ShowWindowCody Russell2008-03-231-2/+9
| | | | | | | | | | | | | 2008-03-23 Cody Russell <bratsche@gnome.org> * gdk/win32/gdkevents-win32.c (show_window_recurse): Check window state for GDK_WINDOW_STATE_ICONIFIED before doing ShowWindow (SW_RESTORE). This fixes a problem where tearing off menus from a maximized window would force the window to restore its size. (#518846) svn path=/trunk/; revision=19926
* gdk/gdkspawn.h gtk/gtkbuilderprivate.h gtk/gtkfilechoosersettings.cMichael Natterer2008-03-141-1/+0
| | | | | | | | | | | | | | | 2008-03-14 Michael Natterer <mitch@imendio.com> * gdk/gdkspawn.h * gtk/gtkbuilderprivate.h * gtk/gtkfilechoosersettings.c * gtk/gtksearchenginesimple.c * gtk/tests/liststore.c * gtk/tests/treestore.c: remove single-file includes of GLib headers or replace them by <glib.h> where needed. svn path=/trunk/; revision=19877
* Drop the support for the MSH_MOUSEWHEEL message that MSDN says is usedTor Lillqvist2008-03-141-56/+1
| | | | | | | | | | | 2008-03-14 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkevents-win32.c: Drop the support for the MSH_MOUSEWHEEL message that MSDN says is used only on NT 3.51 and Win95. Thanks to mitch for noticing this obsolete code. svn path=/trunk/; revision=19874
* Patch from Paul Davis, only flush the toplevel once per update.Richard Hult2008-03-141-0/+30
| | | | | | | | | | 2008-03-14 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: (gdk_window_quartz_process_all_updates): Patch from Paul Davis, only flush the toplevel once per update. svn path=/trunk/; revision=19871
* removed linux-fb backend files.Michael Natterer2008-03-1155-27776/+0
| | | | | | | | | | | | | | | | | | | | | | 2008-03-11 Michael Natterer <mitch@imendio.com> * gdk/linux-fb/*: removed linux-fb backend files. * acconfig.h * config.h.win32.in * docs/README.linux-fb * gtk/Makefile.am: remove remaining traces of linux-fb. * gtk/gtkwindow-decorate.c: same here. There is some code that calls into linux-fb to set window move/resize callbacks. I put it in #if 0 as a reminder because we did use decorated windows with the DirectFB backend and it did work, so I don't really know why this code is needed or how it could work with DirectFB back then. The file does actually compile now if DECORATE_WINDOWS is defined, but I didn't test with DirectFB to check if it does anything. svn path=/trunk/; revision=19749
* Implement gdk_window_reparent.Richard Hult2008-03-111-6/+43
| | | | | | | | 2008-03-11 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: Implement gdk_window_reparent. svn path=/trunk/; revision=19746
* Bug 520286 - Non-deletable window has no minimize / maximize buttonsTor Lillqvist2008-03-103-23/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-03-10 Tor Lillqvist <tml@novell.com> Bug 520286 - Non-deletable window has no minimize / maximize buttons * gdk/win32/gdkmain-win32.c (_gdk_win32_window_style_to_string): New debugging output function that decodes a set of WS_* bits. * gdk/win32/gdkprivate-win32.h: Declare it. * gdk/win32/gdkwindow-win32.c (update_single_system_menu_entry): New function that enables or disables one menu entry in the system menu of a top-level window. (The corresponding decoration will then also be enabled or disabled (grayed).) (update_style_bits): Do as the comment says and don't try to update the window style based on the GdkWMFunctions set for the window. (update_system_menu): New function that enables or disables the system menu entries based on a window's stored set of GdkWMFunctions. (gdk_window_set_functions): Call update_system_menu() instead of update_style_bits(). svn path=/trunk/; revision=19743
* Fix #321896 - Synch gtkimcontextsimple.c with XorgSimos Xenitellis2008-03-041-382/+656
| | | | svn path=/trunk/; revision=19706
* Fix performance regression for borderless transparent windows with shadow.Richard Hult2008-02-273-5/+18
| | | | | | | | | | | | 2008-02-27 Richard Hult <richard@imendio.com> * gdk/quartz/GdkQuartzView.c: * gdk/quartz/GdkQuartzView.h: * gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_decorations): Fix performance regression for borderless transparent windows with shadow. svn path=/trunk/; revision=19666
* Fix build on tiger.Richard Hult2008-02-251-1/+1
| | | | | | | | | 2008-02-25 Richard Hult <richard@imendio.com> * gdk/quartz/gdkevents-quartz.c (_gdk_quartz_events_trigger_crossing_events): Fix build on tiger. svn path=/trunk/; revision=19644
* Prevent hidden windows from being shown without gdk's control whenRichard Hult2008-02-241-2/+11
| | | | | | | | | 2008-02-24 Richard Hult <richard@imendio.com> * gdk/quartz/GdkQuartzWindow.c: Prevent hidden windows from being shown without gdk's control when clicking the dock icon. svn path=/trunk/; revision=19638
* Use the subtype field for the custom event that is used to wake up theRichard Hult2008-02-244-2/+75
| | | | | | | | | | | | | | | | | 2008-02-24 Richard Hult <richard@imendio.com> * gdk/quartz/gdkprivate-quartz.h: * gdk/quartz/gdkeventloop-quartz.c: (got_fd_activity), (poll_func): Use the subtype field for the custom event that is used to wake up the mainloop so we can have other custom event types. * gdk/quartz/gdkevents-quartz.c: (_gdk_quartz_events_trigger_crossing_events): * gdk/quartz/gdkwindow-quartz.c: (show_window_internal): Create crossing events after showing a window if necessary, to work around problems with the tracking rect API. svn path=/trunk/; revision=19637
* Set the right window level and shadow after recreating the window.Richard Hult2008-02-202-0/+9
| | | | | | | | | | | | 2008-02-20 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_decorations): Set the right window level and shadow after recreating the window. * gdk/quartz/GdkQuartzView.c: (drawRect): Invalidate the shadow if necessary after drawing (bug #517338). svn path=/trunk/; revision=19622
* Update the position after showing the window since the window managerRichard Hult2008-02-171-0/+23
| | | | | | | | | | 2008-02-17 Richard Hult <richard@imendio.com> * gdk/quartz/GdkQuartzWindow.c: (showAndMakeKey): Update the position after showing the window since the window manager might not place it where we requested in the first places. svn path=/trunk/; revision=19605
* Clear the toplevel ordering list in all places where the order isRichard Hult2008-02-171-0/+4
| | | | | | | | | | | | | 2008-02-17 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: (show_window_internal), (_gdk_quartz_window_detach_from_parent), (_gdk_quartz_window_attach_to_parent), (gdk_window_focus): Clear the toplevel ordering list in all places where the order is potentially changed. Fixes mouse focus issues for windows with a transient parent set. svn path=/trunk/; revision=19604
* Highlight the mouse window when event debugging is enabled.Richard Hult2008-02-171-0/+5
| | | | | | | | | | 2008-02-17 Richard Hult <richard@imendio.com> * gdk/quartz/gdkevents-quartz.c (_gdk_quartz_events_update_mouse_window): Highlight the mouse window when event debugging is enabled. svn path=/trunk/; revision=19603
* Add state to the scroll event (bug #516757, Paul Davis).Richard Hult2008-02-161-0/+1
| | | | | | | | | 2008-02-16 Richard Hult <richard@imendio.com> * gdk/quartz/gdkevents-quartz.c (create_scroll_event): Add state to the scroll event (bug #516757, Paul Davis). svn path=/trunk/; revision=19598
* Don't install private headers. (#463510)Matthias Clasen2008-02-163-21/+24
| | | | | | | | | | | | | 2008-02-15 Matthias Clasen <mclasen@redhat.com> * gdk/Makefile.am: Don't install private headers. (#463510) * gdk/gdkinternal.h: Include gdkmedialib.h here, not in the installed header gdkprivate.h. svn path=/trunk/; revision=19595
* Add debugging code to highlight a gdkwindow.Richard Hult2008-02-162-0/+83
| | | | | | | | | | 2008-02-16 Richard Hult <richard@imendio.com> * gdk/quartz/gdkprivate-quartz.h: * gdk/quartz/gdkwindow-quartz.c: Add debugging code to highlight a gdkwindow. svn path=/trunk/; revision=19587
* Go back to 2.13.0 as version for now, as there was no consensus to do theMatthias Clasen2008-02-151-7/+7
| | | | | | | | | | | | | 2008-02-15 Matthias Clasen <mclasen@redhat.com> * configure.in: Go back to 2.13.0 as version for now, as there was no consensus to do the jump. * many other places: Update Since: tags. svn path=/trunk/; revision=19586
* Adapt to the change to use frame instead of bounds when resizing windows.Richard Hult2008-02-151-2/+2
| | | | | | | | | 2008-02-15 Richard Hult <richard@imendio.com> * gdk/quartz/GdkQuartzView.c: Adapt to the change to use frame instead of bounds when resizing windows. svn path=/trunk/; revision=19580
* Fix a small doc issues.Matthias Clasen2008-02-153-37/+37
| | | | | | | | | | | 2008-02-15 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkkeys-x11.c: * gdk/x11/gdkcolor-x11.c: * gdk/gdkpolyreg-generic.c: Fix a small doc issues. svn path=/trunk/; revision=19579
* Documentation fixesMatthias Clasen2008-02-152-12/+20
| | | | svn path=/trunk/; revision=19577
* Using makeKeyWindow unfortunately doesn't work in all cases, we must useRichard Hult2008-02-141-1/+1
| | | | | | | | | | 2008-02-14 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: (gdk_window_focus): Using makeKeyWindow unfortunately doesn't work in all cases, we must use makeKeyAndOrderFront. svn path=/trunk/; revision=19568
* Make sure we leave fullscreen mode if the window is hidden.Richard Hult2008-02-141-27/+43
| | | | | | | | | | | 2008-02-14 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: (get_fullscreen_geometry), (gdk_window_hide), (gdk_window_fullscreen), (gdk_window_unfullscreen): Make sure we leave fullscreen mode if the window is hidden. svn path=/trunk/; revision=19567
* Set frame, not bounds when resizing to be consistent and to avoidRichard Hult2008-02-141-1/+1
| | | | | | | | | | 2008-02-14 Richard Hult <richard@imendio.com> * gdk/quartz/GdkQuartzWindow.c: Set frame, not bounds when resizing to be consistent and to avoid introducing an internal transform in the view. svn path=/trunk/; revision=19566
* Coding style fix.Richard Hult2008-02-141-1/+2
| | | | | | | | | 2008-02-14 Richard Hult <richard@imendio.com> * gdk/quartz/gdkdisplay-quartz.c: (gdk_display_open): Coding style fix. svn path=/trunk/; revision=19565
* gdk/gdktestutils.h Remove ; trailing G_BEGIN/END_DECLSJohan Dahlin2008-02-141-2/+2
| | | | | | | | | | 2008-02-14 Johan Dahlin <johan@gnome.org> * gdk/gdktestutils.h * gtk/gtktestutils.h: Remove ; trailing G_BEGIN/END_DECLS svn path=/trunk/; revision=19564
* Fix the return value (return number of colors that failed), and handleRichard Hult2008-02-131-9/+17
| | | | | | | | | | | 2008-02-13 Richard Hult <richard@imendio.com> * gdk/quartz/gdkcolor-quartz.c: (gdk_colormap_alloc_colors): Fix the return value (return number of colors that failed), and handle RGBA colormap. (gdk_colormap_free_colors): Fix typo in comment. svn path=/trunk/; revision=19557
* Ignore the delta from the NSEvent for now, generating multiple scrollRichard Hult2008-02-081-0/+6
| | | | | | | | | | | 2008-02-08 Richard Hult <richard@imendio.com> * gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Ignore the delta from the NSEvent for now, generating multiple scroll events results in a lot of events getting queued up and things get really slow. svn path=/trunk/; revision=19499
* gdk/win32/gdkevents-win32.c Fixed two declarations in the middle of aCody Russell2008-02-072-18/+24
| | | | | | | | | | | | 2008-02-07 Cody Russell <bratsche@gnome.org> * gdk/win32/gdkevents-win32.c * gdk/win32/gdkwindow-win32.c: Fixed two declarations in the middle of a block that were causing compile problems on old compilers. (#515053, reported by Kazuki IWAMOTO) svn path=/trunk/; revision=19493
* If the pixbuf has an alpha channel, use gdk_draw_rgb_32_image to draw itChristian Persch2008-02-061-5/+18
| | | | | | | | | | | | 2008-02-07 Christian Persch <chpe@gnome.org> * gdk/gdkpixbuf-render.c: (gdk_pixbuf_render_pixmap_and_mask_for_colormap): If the pixbuf has an alpha channel, use gdk_draw_rgb_32_image to draw it to the pixmap; otherwise there will be random pixel values in the semi-transparent area of the pixbuf within the mask. Bug #487865. svn path=/trunk/; revision=19488
* Also check that the window is not mapped.Cody Russell2008-02-061-1/+1
| | | | svn path=/trunk/; revision=19485
* Check if the window is a temp window, otherwise things get wonky when youCody Russell2008-02-061-1/+5
| | | | | | | | | | | | 2008-02-06 Cody Russell <bratsche@gnome.org> * gdk/win32/gdkevents-win32.c: Check if the window is a temp window, otherwise things get wonky when you click on a menu. This fixes a regression caused in #505928. Thanks to Tor for spotting this one! (#514789) svn path=/trunk/; revision=19482
* Walk down the stack until we get to a window that is mapped. OtherwiseCody Russell2008-02-051-1/+15
| | | | | | | | | | | | 2008-02-05 Cody Russell <bratsche@gnome.org> * gdk/win32/gdkwindow-win32.c (_gdk_modal_current): Walk down the stack until we get to a window that is mapped. Otherwise hiding a window will cause all windows in the app to be blocked. (#514643) svn path=/trunk/; revision=19477
* gdk/win32/gdkprivate-win32.h gdk/win32/gdkevents-win32.cCody Russell2008-02-055-20/+146
| | | | | | | | | | | | | | 2008-02-05 Cody Russell <bratsche@gnome.org> * gdk/win32/gdkprivate-win32.h * gdk/win32/gdkevents-win32.c * gdk/win32/gdkwindow-win32.c * gdk/win32/gdkwindow-win32.h * gdk/win32/gdkwin32.h: Modal window rework. (#455627 and #511111) svn path=/trunk/; revision=19463
* Refactored some of the window hiding/showing code from WM_ACTIVATE toCody Russell2008-01-311-47/+59
| | | | | | | | | | | | | | 2008-01-31 Cody Russell <bratsche@gnome.org> * gdk/win32/gdkevents-win32.c: Refactored some of the window hiding/showing code from WM_ACTIVATE to WM_SIZE and WM_SYSCOMMAND. Having this under WM_ACTIVATE was causing the application to go into a weird state when the user right-clicked on the taskbar entry of a window that was minimized. (#505928) svn path=/trunk/; revision=19451
* applied patch from Denis Oliver Kropp <dok@directfb.org>.Sven Neumann2008-01-311-3/+3
| | | | | | | | | | | 2008-01-31 Sven Neumann <sven@gimp.org> * gdk/directfb/gdkimage-directfb.c (_gdk_directfb_copy_to_image): applied patch from Denis Oliver Kropp <dok@directfb.org>. svn path=/trunk/; revision=19448
* gdk/directfb/gdkdisplay-directfb.c gdk/directfb/gdkdrawable-directfb.cSven Neumann2008-01-314-81/+48
| | | | | | | | | | | | | 2008-01-31 Sven Neumann <sven@gimp.org> * gdk/directfb/gdkdisplay-directfb.c * gdk/directfb/gdkdrawable-directfb.c * gdk/directfb/gdkprivate-directfb.h * gdk/directfb/gdkwindow-directfb.c: applied patch from Denis Oliver Kropp <dok@directfb.org>. Fixes remaining warnings. svn path=/trunk/; revision=19447
* Another attempt at fixing focus issues with undecorated windows. RevertRichard Hult2008-01-312-20/+2
| | | | | | | | | | | | 2008-01-31 Richard Hult <richard@imendio.com> * gdk/quartz/GdkQuartzView.c: Another attempt at fixing focus issues with undecorated windows. Revert the change done on 2008-01-25 and fix it by using the view's bounds instead. The bounds will always be up to date when setting up the tracking rect, so this should be more robust. svn path=/trunk/; revision=19445
* gdk/directfb/gdkdrawable-directfb.c gdk/directfb/gdkwindow-directfb.cSven Neumann2008-01-303-119/+354
| | | | | | | | | | | | | 2008-01-30 Sven Neumann <sven@gimp.org> * gdk/directfb/gdkdrawable-directfb.c * gdk/directfb/gdkwindow-directfb.c * gdk/directfb/gdkprivate-directfb.h: applied patch from Denis Oliver Kropp <dok@directfb.org>. Adds debug messages using DirectFB's debugging system svn path=/trunk/; revision=19433
* gdk/directfb/gdkdirectfb.h gdk/directfb/gdkdisplay-directfb.cSven Neumann2008-01-3011-86/+134
| | | | | | | | | | | | | | | | | | | | | 2008-01-30 Sven Neumann <sven@gimp.org> * gdk/directfb/gdkdirectfb.h * gdk/directfb/gdkdisplay-directfb.c * gdk/directfb/gdkdrawable-directfb.c * gdk/directfb/gdkim-directfb.c * gdk/directfb/gdkimage-directfb.c * gdk/directfb/gdkinput-directfb.c * gdk/directfb/gdkmain-directfb.c * gdk/directfb/gdkpixmap-directfb.c * gdk/directfb/gdktestutils-directfb.c * gdk/directfb/gdkvisual-directfb.c * gdk/directfb/gdkwindow-directfb.c: applied patch from Denis Oliver Kropp <dok@directfb.org>. Fixes various warnings, some errors and has some cleanups. svn path=/trunk/; revision=19432
* Don't recreate a tracking rect if it didn't change, fixes focus eventRichard Hult2008-01-251-1/+15
| | | | | | | | | 2008-01-25 Richard Hult <richard@imendio.com> * gdk/quartz/GdkQuartzView.c: Don't recreate a tracking rect if it didn't change, fixes focus event issues for undecorated windows. svn path=/trunk/; revision=19402
* Fix compile warnings (add missing const and remove unused variables).Richard Hult2008-01-251-9/+6
| | | | | | | | | 2008-01-25 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: Fix compile warnings (add missing const and remove unused variables). svn path=/trunk/; revision=19401