summaryrefslogtreecommitdiff
path: root/gdk
Commit message (Collapse)AuthorAgeFilesLines
* Typo fixes and small doc improvementsMatthias Clasen2008-12-265-7/+12
| | | | svn path=/trunk/; revision=21929
* Remove a C99ism. Pointed out by Eric LamarqueMatthias Clasen2008-12-131-1/+4
| | | | | | | | | * gdk/x11/gdktestutils-x11.c (gdk_test_simulate_button): Remove a C99ism. Pointed out by Eric Lamarque svn path=/trunk/; revision=21886
* Initialize the XAtom cache earlier. Patch by Christian PerschMatthias Clasen2008-12-131-2/+2
| | | | | | | | * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize the XAtom cache earlier. Patch by Christian Persch svn path=/trunk/; revision=21880
* Fix a typoMatthias Clasen2008-12-133-4/+4
| | | | svn path=/trunk/; revision=21877
* add missing #ifndef GDK_DISABLE_DEPRECATED.Michael Natterer2008-12-091-0/+2
| | | | | | | | | 2008-12-09 Michael Natterer <mitch@imendio.com> * gdk/gdk.symbols: add missing #ifndef GDK_DISABLE_DEPRECATED. svn path=/trunk/; revision=21863
* Correct the documentation. Patch by Paul DavisMatthias Clasen2008-12-081-5/+7
| | | | | | | | * gdk/gdkdisplay.c (gdk_display_get_window_at_pointer): Correct the documentation. Patch by Paul Davis svn path=/trunk/; revision=21852
* Bug 563547 – Update gdkx11 atom precache tableBehdad Esfahbod2008-12-081-2/+14
| | | | | | | | | | | 2008-12-07 Behdad Esfahbod <behdad@gnome.org> Bug 563547 – Update gdkx11 atom precache table * gdk/x11/gdkdisplay-x11.c: Add more atoms to precache. svn path=/trunk/; revision=21849
* Bug 559622 – GdkDevice test segfaultsChristian Dywan2008-11-302-8/+17
| | | | | | | | | | | | 2008-11-30 Christian Dywan <christian@imendio.com> Bug 559622 – GdkDevice test segfaults * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_dispose): * gdk/x11/gdkinput.c (gdk_device_class_init), (gdk_device_dispose): Free and reset device in dispose. Patch by Michael Natterer and myself. svn path=/trunk/; revision=21834
* Bug 554076 – eventually release g_new-ed supported_atomsChristian Dywan2008-11-301-1/+10
| | | | | | | | | | | | 2008-11-30 Christian Dywan <christian@imendio.com> Bug 554076 – eventually release g_new-ed supported_atoms * gdk/x11/gdkevents-x11.c (cleanup_atoms), (gdk_x11_screen_supports_net_wm_hint): Set cleanup callback. Patch by Caolan McNamara. svn path=/trunk/; revision=21833
* Bug 539263 – Deprecate gdk_window_get_toplevelsChristian Dywan2008-11-302-1/+3
| | | | | | | | | | | 2008-11-30 Christian Dywan <christian@imendio.com> Bug 539263 – Deprecate gdk_window_get_toplevels * gdk/gdkwindow.c: * gdk/gdkwindow.h: Deprecate gdk_window_get_toplevels svn path=/trunk/; revision=21831
* Bug 550942 – [patch] Rework of gdkeventloop-quartz.cRichard Hult2008-11-123-194/+859
| | | | | | | | | | | | | | 2008-11-12 Richard Hult <richard@imendio.com> Bug 550942 – [patch] Rework of gdkeventloop-quartz.c * gdk/gdk.c: * gdk/gdkinternals.h: Add eventloop debug facility. * gdk/quartz/gdkeventloop-quartz.c: Big rework of the quartz mainloop integration, patch from Owen Taylor. See bug #550942 for the details. svn path=/trunk/; revision=21783
* Bug 558586 – handling of keyboard under darwin (quartz)Richard Hult2008-11-121-5/+10
| | | | | | | | | | | | | 2008-11-12 Richard Hult <richard@imendio.com> Bug 558586 – handling of keyboard under darwin (quartz) * gdk/quartz/gdkkeys-quartz.c: Follow up on this bug, only use the new API when building on 64-bit, since there are still old non-xml layouts used out there we don't want to break them. (For 64-bit those layouts doesn't work so we don't have a choice there.) svn path=/trunk/; revision=21782
* Bug 558586 – handling of keyboard under darwin (quartz)Richard Hult2008-11-061-6/+29
| | | | | | | | | | | | | 2008-11-06 Richard Hult <richard@imendio.com> Bug 558586 – handling of keyboard under darwin (quartz) * gdk/quartz/gdkkeys-quartz.c: (maybe_update_keymap): Patch from Arnaud Charlet to replace use of deprecated keyboard layout API with the new TIS API available in 10.5. The old code is still used when building for 10.4. svn path=/trunk/; revision=21763
* Revert (at least for now) the alt/cmd switching since it breaks theRichard Hult2008-11-051-4/+2
| | | | | | | | | | | | 2008-11-05 Richard Hult <richard@imendio.com> * gdk/quartz/gdkevents-quartz.c: (get_keyboard_modifiers_from_ns_event), (create_key_event): Revert (at least for now) the alt/cmd switching since it breaks the "alt-gr" functionality of alt which makes it impossible to input lots of characters. svn path=/trunk/; revision=21761
* Set the fill color outside the loop.Richard Hult2008-11-051-4/+4
| | | | | | | | | | 2008-11-05 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c: (gdk_window_impl_quartz_begin_paint_region): Set the fill color outside the loop. svn path=/trunk/; revision=21759
* Bug 557212 - Problem with which window gains focus and is visibleTor Lillqvist2008-11-031-6/+6
| | | | | | | | | | | | | | | | 2008-11-04 Tor Lillqvist <tml@novell.com> Bug 557212 - Problem with which window gains focus and is visible * gdk/win32/gdkevents-win32.c (ensure_stacking_on_activate_app): Only do the restacking for the active window of the application. Seems to fix the problem. (gdk_event_translate): Only call ensure_stacking_on_activate_app() when the application is being activated, not deactivated. svn path=/trunk/; revision=21756
* Bug 558278 - Crash when calling a callback set byTor Lillqvist2008-11-011-18/+37
| | | | | | | | | | | | | | | | | | | | | 2008-11-01 Tor Lillqvist <tml@novell.com> Bug 558278 - Crash when calling a callback set by gdk_add_client_message_filter() * gdk/win32/gdkevents-win32.c (apply_event_filters): Rename from apply_filters() so that it is clear that this function is for GdkEventFilters only. (print_event): Print more information for GDK_CLIENT_EVENT events. (gdk_event_translate): When handling client filters, don't use apply_event_filters(). Use similar code as in the X11 backend, although not exactly, as the parameter list and return value semantics of gdk_event_translate() is different. svn path=/trunk/; revision=21748
* Bug 557762 – Misleading error message in GDK DirectFBChristian Dywan2008-10-291-1/+1
| | | | | | | * gdk/directfb/gdkdisplay-directfb.c (gdk_display_open): Correctly say GetInputDevice instead of GetDisplayLayer svn path=/trunk/; revision=21726
* fix small typo.Michael Natterer2008-10-281-1/+1
| | | | | | | | | 2008-10-28 Michael Natterer <mitch@imendio.com> * gdk/keyname-table.h: fix small typo. svn path=/trunk/; revision=21724
* Bug 557894 – Wrong return value for gdk_pointer_grab_info_libgtk_only()Richard Hult2008-10-271-1/+1
| | | | | | | | | | | | | 2008-10-27 Richard Hult <richard@imendio.com> Bug 557894 – Wrong return value for gdk_pointer_grab_info_libgtk_only() * gdk/quartz/gdkevents-quartz.c: (gdk_pointer_grab_info_libgtk_only): Return TRUE when there is a pointer grab. Patch by Owen Taylor. svn path=/trunk/; revision=21722
* More conversion to C_()Matthias Clasen2008-10-271-37/+37
| | | | svn path=/trunk/; revision=21717
* Only emit size-changed if the screen size actually changed.Matthias Clasen2008-10-221-1/+10
| | | | | | | | | | 2008-10-22 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkscreen-x11.c: Only emit size-changed if the screen size actually changed. svn path=/trunk/; revision=21698
* gdk/gdkdraw.c gdk/gdkimage.c gdk/gdkscreen.c replace assertions for obj !=Michael Natterer2008-10-214-67/+51
| | | | | | | | | | | | | | | 2008-10-21 Michael Natterer <mitch@imendio.com> * gdk/gdkdraw.c * gdk/gdkimage.c * gdk/gdkscreen.c * gdk/gdkwindow.c: replace assertions for obj != NULL by GDK_IS_OBJ(), remove redundant != NULL checks when there is already a type check, add some g_return_if_fail() that were missing entirely, fix some broken indentation and spacing. svn path=/trunk/; revision=21695
* Bug 557266 - Window Management ProblemTor Lillqvist2008-10-211-15/+24
| | | | | | | | | | | | | | | | | | | | 2008-10-21 Tor Lillqvist <tml@novell.com> Bug 557266 - Window Management Problem Also reported in mail to gtk-list, and of course it has been well known in general that window state management is messy and buggy in various ways in gdk/win32. * gdk/win32/gdkwindow-win32.c (show_window_internal): Correct handling of GDK_WINDOW_STATE_ABOVE windows. It doesn't work to set the WS_EX_TOPMOST extended style bit using SetWindowLong(). We must call SetWindowPos() on the window using HWND_TOPMOST instead. The description for WS_EX_TOPMOST in the documentation for CreateWindowEx() even implies that if you read it carefully. svn path=/trunk/; revision=21694
* reorder functions to be in standard order, add prototypes and namespace toMichael Natterer2008-10-211-38/+52
| | | | | | | | | | | 2008-10-21 Michael Natterer <mitch@imendio.com> * gdk/gdkapplaunchcontext.c: reorder functions to be in standard order, add prototypes and namespace to static functions, add g_return_if_fail()s which were missing all over the place. svn path=/trunk/; revision=21692
* On WM_WINDOWPOSCHANGING, don't dereference windowpos in the debuggingTor Lillqvist2008-10-171-22/+28
| | | | | | | | | | | | | | | | | | | | | | | | 2008-10-18 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkevents-win32.c (gdk_event_translate): On WM_WINDOWPOSCHANGING, don't dereference windowpos in the debugging output without setting it first. 2008-10-18 Tor Lillqvist <tml@novell.com> Bug 556578 - GIMP windows stay on top of other windows * gdk/win32/gdkevents-win32.c (ensure_stacking_on_unminimize) (ensure_stacking_on_window_pos_changing) (ensure_stacking_on_activate_app): Ignore unmapped windows in the loops where we look for the lowest "transient-type" window. (gdk_event_translate): Don't call ensure_stacking_on_window_pos_changing() or ensure_stacking_on_activate_app() for unmapped windows. svn path=/trunk/; revision=21676
* fix typo in the type name so the macro becomes usable.Michael Natterer2008-10-151-1/+1
| | | | | | | | | | 2008-10-15 Michael Natterer <mitch@imendio.com> * gdk/gdkapplaunchcontext.h (GDK_IS_APP_LAUNCH_CONTEXT): fix typo in the type name so the macro becomes usable. svn path=/trunk/; revision=21658
* Add empty stub to fix linking.Richard Hult2008-10-101-0/+7
| | | | | | | | | 2008-10-10 Richard Hult <richard@imendio.com> * gdk/quartz/gdkkeys-quartz.c: (gdk_keymap_get_caps_lock_state) Add empty stub to fix linking. svn path=/trunk/; revision=21629
* Bug 550342 – Splash screens have a captionRichard Hult2008-10-091-5/+7
| | | | | | | | | | | | 2008-10-09 Richard Hult <richard@imendio.com> Bug 550342 – Splash screens have a caption * gdk/quartz/gdkwindow-quartz.c: (_gdk_window_new), (gdk_window_set_decorations): Patch from Marianne Gagnon to make splash windows borderless. svn path=/trunk/; revision=21617
* Bug 132501 - Make utility window translate to tool window in win32Tor Lillqvist2008-10-054-48/+360
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-10-04 Tor Lillqvist <tml@novell.com> Bug 132501 - Make utility window translate to tool window in win32 Implement the utility window type hint. Such windows are kept on top of other windows. Makes GIMP's toolbox and dock windows behave more like in GNOME under metacity. Apply the same logic also to windows marked with the dialog window type hint, and windows that are transient for some other window. I'll call such windows "transient-type" below. * gdk/win32/gdkevents-win32.c (doesnt_want_key): Drop unused variables. (ensure_stacking_on_unminimize) (ensure_stacking_on_window_pos_changing) (ensure_stacking_on_activate_app): New functions to implement the desired stacking order. Make sure that a window that is not transient-type stays below any transient-type windows of the application. When activating a non-transient-type window make sure it rises as high as possible. (gdk_event_translate): Call above functions on WM_WINDOWPOSCHANGING, WM_ACTIVATEAPP and on WM_SIZE when unminimizing. Improve debugging printout. * gdk/win32/gdkwindow-win32.c (get_effective_window_decorations): Handle utility windows like toolbar windows. (gdk_window_new_internal) (update_style_bits): Give utility windows the WS_EX_TOOLWINDOW extended style. (gdk_window_set_title): If debugging "misc" or "events", make the handle of top-level windows show up in their title bars. Very useful when looking at debugging output. (gdk_window_set_keep_above) (gdk_window_set_keep_below) (gdk_window_set_modal_hint) (gdk_window_set_skip_taskbar_hint) (gdk_window_set_skip_pager_hint): Add and improve debugging printout. (gdk_window_set_type_hint): Print hint symbolically in GDK_NOTE(). 2008-10-04 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkmain-win32.c (_gdk_win32_window_exstyle_to_string) (_gdk_win32_window_pos_bits_to_string): New debugging printout functions. Decode the WS_EX_* and SWP_* bits. * gdk/win32/gdkprivate-win32.h: Declare them. Define GDK_DEBUG_MISC_OR_EVENTS for use in GDK_NOTE() to match either "misc" or "events". svn path=/trunk/; revision=21587
* remove debug spewMatthias Clasen2008-10-011-1/+0
| | | | svn path=/trunk/; revision=21561
* Implement trivially on Windows. Not sure if something more complex isTor Lillqvist2008-10-011-0/+6
| | | | | | | | | | | | 2008-10-01 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkkeys-win32.c (gdk_keymap_get_caps_lock_state): Implement trivially on Windows. Not sure if something more complex is actually needed, more specifically whether the function needs to differentiate between "Caps Lock" and "Shift Lock" semantics? svn path=/trunk/; revision=21558
* Bug 107000 – Add signals to GdkKeymap for monitoring caps_lock, etc.Matthias Clasen2008-09-295-13/+78
| | | | | | | | | | | | | | | | | | | 2008-09-29 Matthias Clasen <mclasen@redhat.com> Bug 107000 – Add signals to GdkKeymap for monitoring caps_lock, etc. * gdk/gdk.symbols: * gdk/gdkkeys.[ch]: Add a new GdkKeymap::state-changed signal, and a gdk_keymap_get_caps_lock_state function. * gdk/x11/gdkkeys-x11.c: Implement it here. For now, only emit state-changed when caps lock lockedness changes. * gdk/x11/gdkdisplay-x11.c: Also select for modifier lock status changes in the XkbSelectEventDetails call. svn path=/trunk/; revision=21545
* Correctly chain up the finalize implementation.Emmanuele Bassi2008-09-291-8/+15
| | | | | | | | | | 2008-09-29 Emmanuele Bassi <ebassi@linux.intel.com> * gdk/x11/gdkinput.c: (gdk_device_class_init), (gdk_device_finalize): Correctly chain up the finalize implementation. svn path=/trunk/; revision=21542
* Bug 552956 – Should check composite extension versionMatthias Clasen2008-09-271-1/+11
| | | | | | | | | | | | | 2008-09-26 Matthias Clasen <mclasen@redhat.com> Bug 552956 – Should check composite extension version * gdk/x11/gdkdisplay-x11.c: Check that the version of the composite extension is at least 0.4. Patch by Owen Taylor svn path=/trunk/; revision=21530
* Bug 553803 – eventually call XCloseDevice on XOpenDevice resultsMatthias Clasen2008-09-273-14/+32
| | | | | | | | | | | | | * gdk/x11/gdkinput.c: Add a finalize function for device objects, and call XCloseDevice there. * gdk/x11/gdkinput-x11.c: * gdk/x11/gdkdisplay-x11.c: Move freeing of device objects to the finalize function. Patch by Caolan McNamara svn path=/trunk/; revision=21529
* Bug 553917 – Typo in gdkwindow-win32.cCody Russell2008-09-261-1/+1
| | | | | | | | | | | | | | 2008-09-26 Cody Russell <bratsche@gnome.org> Bug 553917 – Typo in gdkwindow-win32.c * gdk/win32/gdkwindow-win32.c: Fixed a typo in update_system_menu(). Changed GDK_DECOR_ALL to GDK_FUNC_ALL. Reported by Richard Hult svn path=/trunk/; revision=21522
* remove unused variable and fix indentation.Michael Natterer2008-09-231-5/+3
| | | | | | | | | | 2008-09-23 Michael Natterer <mitch@imendio.com> * gdk/x11/gdkevents-x11.c (gdk_event_translate): remove unused variable and fix indentation. svn path=/trunk/; revision=21496
* Don't use XRRGetScreenResources() as there are performance issues with it.Søren Sandmann2008-09-101-79/+4
| | | | | | | | | | | | Wed Sep 10 06:18:25 2008 Søren Sandmann <sandmann@redhat.com> * gdk/x11/gdkscreen-x11.c (init_multihead): Don't use XRRGetScreenResources() as there are performance issues with it. Instead rely on the fact that the RandR information is propagated through Xinerama as well. svn path=/trunk/; revision=21334
* Bug 550062 – Small update in gdk/gdkkeysyms.hMatthias Clasen2008-09-071-2/+3
| | | | | | | | | | | | 2008-09-06 Matthias Clasen <mclasen@redhat.com> Bug 550062 – Small update in gdk/gdkkeysyms.h * gdk/gdkkeysyms.h: Add dead_perspomeni and fix dead_dasia. Patch by Simos Xenitellis svn path=/trunk/; revision=21308
* Bug 550989 – gdk_display_put_event() should call g_main_context_wakeup()Matthias Clasen2008-09-071-0/+2
| | | | | | | | | | | | | 2008-09-06 Matthias Clasen <mclasen@redhat.com> Bug 550989 – gdk_display_put_event() should call g_main_context_wakeup() * gdk/gdkdisplay.c (gdk_display_put_event): Wake up the main loop after queueing the event. Patch by Owen Taylor svn path=/trunk/; revision=21307
* Bug 551063 – deprecated marking without a link to what new code shouldSven Herzberg2008-09-061-0/+32
| | | | | | | | | | | | | | | 2008-09-06 Sven Herzberg <sven@imendio.com> Bug 551063 – deprecated marking without a link to what new code should use * gdk/tmpl/input.sgml: dropped tmpl documentation for gdk_input_add() and gdk_input_add_full() * gdk/gdkevents.c: added inline documentation for gdk_input_add() and gdk_input_add_full(); added replacement hints into the deprecation message svn path=/trunk/; revision=21305
* More doc fixesMatthias Clasen2008-09-041-1/+1
| | | | svn path=/trunk/; revision=21282
* Check if the window's state has GDK_WINDOW_STATE_MAXIMIZED set beforeCody Russell2008-08-282-17/+45
| | | | | | | | | | | | | | | 2008-08-27 Cody Russell <bratsche@gnome.org> * gdk/win32/gdkevents-win32.c: * gdk/win32/gdkwindow-win32.c (show_window_recurse): Check if the window's state has GDK_WINDOW_STATE_MAXIMIZED set before calling ShowWindow (), and show using SW_SHOWMAXIMIZED or SW_RESTORE accordingly. This fixes an issue where maximized windows that are iconified do not restore back to maximized when you click the taskbar. (#528975) svn path=/trunk/; revision=21218
* Return FALSE from reparent implementations to avoid #548993. Patch by EdMatthias Clasen2008-08-282-2/+2
| | | | | | | | | | | 2008-08-27 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkwindow-x11.c: * gdk/win32/gdkwindow-win32.c: Return FALSE from reparent implementations to avoid #548993. Patch by Ed Catmur. svn path=/trunk/; revision=21215
* Remove the checks to see if the window is modally blocked. This doesn'tCody Russell2008-08-221-4/+0
| | | | | | | | | | | | 2008-08-21 Cody Russell <bratsche@gnome.org> * gdk/win32/gdkevents-win32.c (doesnt_want_key): Remove the checks to see if the window is modally blocked. This doesn't get us anything, and it confuses the search window in GtkTreeView (and potentially other utility windows in other apps). (#520165) svn path=/trunk/; revision=21180
* +Wed Aug 20 18:16:29 2008 Søren Sandmann <sandmann@redhat.com>Søren Sandmann Pedersen2008-08-201-1/+1
| | | | | | | | | | + + * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_size_changed): Emit the + monitors changed signal when the screen size changes. + svn path=/trunk/; revision=21172
* Fix small issues in the documentation of gdk_window_remove_redirection andTorsten Schönfeld2008-08-161-6/+2
| | | | | | gdk_window_redirect_to_drawable. svn path=/trunk/; revision=21137
* Some aftermath of the fix of bug #543868. Clip and flip to the source, notRichard Hult2008-08-151-10/+3
| | | | | | | | | | | 2008-08-15 Richard Hult <richard@imendio.com> * gdk/quartz/gdkdrawable-quartz.c (gdk_quartz_draw_drawable): Some aftermath of the fix of bug #543868. Clip and flip to the source, not the destination. Don't save/restore the gstate, it's already done when getting/releasing the context. svn path=/trunk/; revision=21136
* Use the g_test_*() API for this test reviewed by: Richard HultSven Herzberg2008-08-151-6/+14
| | | | | | | | | | | | | 2008-08-15 Sven Herzberg <sven@imendio.com> Use the g_test_*() API for this test reviewed by: Richard Hult * gdk/tests/check-gdk-cairo.c: use the g_test_*() API to permit adding new tests svn path=/trunk/; revision=21133