summaryrefslogtreecommitdiff
path: root/gdk
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add gdk_app_launch_context_get_type() to gdk.symbols (#511308, KazukiMathias Hasselmann2008-01-221-0/+1
| | | | | | | | IWAMOTO). * gdk/gdk.symbols: Add gdk_app_launch_context_get_type(). svn path=/trunk/; revision=19393
* gdk/gdkdisplay.h gdk/gdkdrawable.h gdk/gdkevents.h gdk/gdkpango.hMichael Natterer2008-01-1521-348/+361
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-15 Michael Natterer <mitch@imendio.com> * gdk/gdkdisplay.h * gdk/gdkdrawable.h * gdk/gdkevents.h * gdk/gdkpango.h * gdk/gdkregion.h * gdk/gdkrgb.h * gdk/gdkwindow.h: made more struct pointer and array parameters const. GDK should now be constified as far as possible without breaking source compatibility. Includes some minor cleanup like indentation and s/nfoo/n_foo/ (bug #508544). * gdk/gdkdisplay.c * gdk/gdkdraw.c * gdk/gdkevents.c * gdk/gdkpango.c * gdk/gdkregion-generic.c * gdk/gdkrgb.c * gdk/directfb/gdkdisplay-directfb.c * gdk/directfb/gdkwindow-directfb.c * gdk/quartz/gdkdisplay-quartz.c * gdk/quartz/gdkwindow-quartz.c * gdk/win32/gdkdisplay-win32.c * gdk/win32/gdkwindow-win32.c * gdk/x11/gdkdisplay-x11.c * gdk/x11/gdkwindow-x11.c: changed accordingly. svn path=/trunk/; revision=19372
* cast the return value of gdk_screen_get_font_options() to gpointer to getMichael Natterer2008-01-141-1/+1
| | | | | | | | | | | 2008-01-14 Michael Natterer <mitch@imendio.com> * gdk/gdkscreen.c (gdk_screen_get_property): cast the return value of gdk_screen_get_font_options() to gpointer to get rid of const warning. svn path=/trunk/; revision=19370
* gdk/gdk.h gdk/gdkcairo.h gdk/gdkcolor.h gdk/gdkgc.h gdk/gdkinternals.hMichael Natterer2008-01-1432-383/+388
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-14 Michael Natterer <mitch@imendio.com> * gdk/gdk.h * gdk/gdkcairo.h * gdk/gdkcolor.h * gdk/gdkgc.h * gdk/gdkinternals.h * gdk/gdkregion.h * gdk/gdkwindow.h: made GdkRectangle*, GdkRegion* and GdkColor* parameters const. * gdk/gdkcairo.c * gdk/gdkgc.c * gdk/gdkwindow.c * gdk/gdkrectangle.c * gdk/gdkpolyreg-generic.c * gdk/gdkregion-generic.c * gdk/directfb/gdkcolor-directfb.c * gdk/directfb/gdkgc-directfb.c * gdk/directfb/gdkgeometry-directfb.c * gdk/directfb/gdkwindow-directfb.c * gdk/quartz/gdkcolor-quartz.c * gdk/quartz/gdkgc-quartz.c * gdk/quartz/gdkgeometry-quartz.c * gdk/quartz/gdkwindow-quartz.c * gdk/win32/gdkcolor-win32.c * gdk/win32/gdkgc-win32.c * gdk/win32/gdkgeometry-win32.c * gdk/win32/gdkprivate-win32.h * gdk/win32/gdkwindow-win32.c * gdk/x11/gdkcolor-x11.c * gdk/x11/gdkgc-x11.c * gdk/x11/gdkgeometry-x11.c * gdk/x11/gdkmain-x11.c * gdk/x11/gdkprivate-x11.h * gdk/x11/gdkwindow-x11.c: changed accordingly. * gdk/gdkpolyreg-generic.c: uncruftify to have proper function headers. svn path=/trunk/; revision=19365
* gdk/win32/gdkdisplay-win32.c gdk/win32/gdkglobals-win32.cTor Lillqvist2008-01-105-35/+84
| | | | | | | | | | | | | | | | 2008-01-10 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkdisplay-win32.c * gdk/win32/gdkglobals-win32.c * gdk/win32/gdkprivate-win32.h * gdk/win32/gdkscreen-win32.c * gdk/win32/gdkwindow-win32.c: Implement gdk_screen_get_monitor_width_mm(), gdk_screen_get_monitor_height_mm() and gdk_screen_get_monitor_plug_name(). Thanks to Kazuki Iwamoto. (#505753) svn path=/trunk/; revision=19346
* Properly ref/unref windows and parents. (#506769)Cody Russell2008-01-101-0/+4
| | | | | | | | | | 2008-01-10 Cody Russell <bratsche@gnome.org> * gdk/win32/gdkwindow-win32.c: (gdk_window_set_transient_for), Properly ref/unref windows and parents. (#506769) svn path=/trunk/; revision=19344
* Move the tracking rect workaround from here...Richard Hult2008-01-103-37/+88
| | | | | | | | | | | | | | 2008-01-10 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: (show_window_internal), (gdk_window_hide), (move_resize_window_internal): Move the tracking rect workaround from here... * gdk/quartz/GdkQuartzWindow.c: * gdk/quartz/GdkQuartzWindow.h: ...to here, and ignore window movements during showing/hiding operations. Fixes bug #508516. svn path=/trunk/; revision=19342
* add these functions to make it build again.Michael Natterer2008-01-101-0/+21
| | | | | | | | | | | | | 2008-01-10 Michael Natterer <mitch@imendio.com> * gdk/directfb/gdkscreen-directfb.c (gdk_screen_get_monitor_width_mm) (gdk_screen_get_monitor_height_mm) (gdk_screen_get_monitor_plug_name): add these functions to make it build again. svn path=/trunk/; revision=19340
* don't forget to set the time in the returned GdkTimeCoords.Michael Natterer2008-01-041-5/+10
| | | | | | | | | | 2008-01-04 Michael Natterer <mitch@imendio.com> * gdk/x11/gdkinput-x11.c (_gdk_device_get_history): don't forget to set the time in the returned GdkTimeCoords. svn path=/trunk/; revision=19304
* Don't return NULL.Matthias Clasen2007-12-281-0/+2
| | | | | | | | | 2007-12-28 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkwindow-x11.c (get_default_title): Don't return NULL. svn path=/trunk/; revision=19274