summaryrefslogtreecommitdiff
path: root/gdk
Commit message (Collapse)AuthorAgeFilesLines
* Implement for B&W cursors, for instance the built-in GDK ones.Tor Lillqvist2006-10-291-33/+112
| | | | | | | | 2006-10-29 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkcursor-win32.c (gdk_win32_icon_to_pixbuf_libgtk_only): Implement for B&W cursors, for instance the built-in GDK ones.
* Improve handling of the small icon of the window class. (#152620, KazukiTor Lillqvist2006-10-281-13/+25
| | | | | | | 2006-10-29 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkwindow-win32.c (RegisterGdkClass): Improve handling of the small icon of the window class. (#152620, Kazuki Iwamoto)
* gdkpixmap-directfb.c: add missing RGB24 case (#361176)Michael David Emmel2006-10-111-0/+2
|
* Update the docs to state which out parameters may be NULL. (#360870,Matthias Clasen2006-10-091-7/+7
| | | | | | | | 2006-10-09 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Update the docs to state which out parameters may be NULL. (#360870, Attilio Fiandrotti)
* Fix for bug 3575611 strdup property name so it can be freedMichael David Emmel2006-10-081-2/+1
|
* CleanupsMatthias Clasen2006-10-087-8/+3
|
* Apply a patch by Behdad Esfahbod to reduce relocations. (#359053)Matthias Clasen2006-10-031-1/+1
| | | | | | | 2006-10-03 Matthias Clasen <mclasen@redhat.com> * gtk/*.c, gdk/*.c: Apply a patch by Behdad Esfahbod to reduce relocations. (#359053)
* Include pltcheck.sh in EXTRA_DIST.Behdad Esfahbod2006-10-021-2/+3
| | | | | | | | | 2006-10-02 Behdad Esfahbod <behdad@gnome.org> * gdk-pixbuf/Makefile.am: * gdk/Makefile.am: * gtk/Makefile.am: Include pltcheck.sh in EXTRA_DIST.
* Move all includes before including gdkalias.h.Behdad Esfahbod2006-10-021-2/+2
| | | | | | | 2006-10-02 Behdad Esfahbod <behdad@gnome.org> * gdk/x11/gdkevents-x11.c: Move all includes before including gdkalias.h.
* free display->input_windows with g_free(), not g_object_unref() (#357566,Michael Natterer2006-09-251-1/+1
| | | | | | | | 2006-09-25 Michael Natterer <mitch@imendio.com> * gdk/x11/gdkdisplay-x11.c (gdk_display_x11_finalize): free display->input_windows with g_free(), not g_object_unref() (#357566, Tommi Komulainen).
* Implement lots of value setters for GdkGC, based on a heavily modifiedMichael Natterer2006-09-215-101/+413
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-09-21 Michael Natterer <mitch@imendio.com> Implement lots of value setters for GdkGC, based on a heavily modified patch from Thomas Broyer (bug #328853): * gdk/quartz/gdkcolor-quartz.c: removed functions which set colors on the CGContext. Instead, added gdk_quartz_get_rgba_from_pixel() which simply returns RGBA values from a GdkColor's pixel value. See gdk_quartz_update_context_from_gc() below. * gdk/quartz/gdkprivate-quartz.h (struct GdkGCQuartz): added lots of members for the newly suppored GC values. Added enum GdkQuartzContextValuesMask which is used for setting up the CGContext for filling and/or stroking. * gdk/quartz/gdkgc-quartz.c (gdk_quartz_gc_get_values) (gdk_quartz_gc_set_values) (_gdk_windowing_gc_copy): support a lot more GC values. (gdk_quartz_update_context_from_gc): added GdkQuartzContextValuesMask parameter and set filling/stroking parameters accordingly. This function also gained full control over the FG and BG colors (they can't be set separately any more). The stipple mask part of the patch doesn't work but seems to take the right approach and doesn't make things worse, so I applied it. Did *not* apply the clipping part of the patch since I don't understand it (I don't understand the version in CVS either, but it at least works :-) * gdk/quartz/gdkdrawable-quartz.c: pass the right masks to gdk_quartz_update_context_from_gc() and removed separate color setting calls. Some minor fixes. * gdk/quartz/gdkwindow-quartz.c (gdk_window_impl_quartz_begin_paint_region): set the CGContext's fill color manually. We don't have/need a GC here.
* fix cast: it's drawable_impl->wrapper that is the GdkWindow, not theMichael Natterer2006-09-211-1/+1
| | | | | | | | | 2006-09-21 Michael Natterer <mitch@imendio.com> * gdk/quartz/gdkwindow-quartz.c (gdk_window_impl_quartz_begin_paint_region): fix cast: it's drawable_impl->wrapper that is the GdkWindow, not the drawable_impl itself.
* just check the first shift-level of keyboard layout for RTL and LTRBehnam Esfahbod2006-09-201-18/+14
| | | | | | | 2006-09-20 Behnam Esfahbod <behnam@zwnj.org> * gdk/x11/gdkkeys-x11.c: (get_direction): just check the first shift-level of keyboard layout for RTL and LTR keysyms() (compliment to #116626)
* Bug 355343. Add a GdkPangoAttrEmbossColor.Ryan Lortie2006-09-193-16/+117
| | | | | | | | | | | 2006-09-19 Ryan Lortie <desrt@desrt.ca> * docs/reference/gdk/gdk-sections.txt: * gdk/gdk.symbols: * gdk/gdkpango.h: * gdk/gdkpango.c: Bug 355343. Add a GdkPangoAttrEmbossColor. (gdk_pango_layout_get_clip_region): Remove an unused variable. (gdk_pango_attr_embossed_new): Fix documentation.
* /tmp/cvsX7MHVxMichael David Emmel2006-09-141-2/+0
|
* gdk/directfb/gdkcolor-directfb.c small clean ups include orderMichael David Emmel2006-09-143-8/+4
| | | | | | | | gdk/directfb/gdkwindow-directfb.c fixed beep compile error gdk/directfb/Makefile.am removed GDK_PIXBUF_DISABLE_DEPRECATED GDK_DISABLE_DEPRECATED to allow compile per Behdad gdk/quartz/Makefile.am same change as directfb Makefile gtk/Makefile.am fixed typo that cause socket stubs not to compile
* gdk/win32/gdkprivate-win32.h gdk/win32/gdkmain-win32.c Define WINVER andTor Lillqvist2006-09-103-52/+8
| | | | | | | | | | | | | 2006-09-10 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkprivate-win32.h * gdk/win32/gdkmain-win32.c * gdk/win32/gdkwindow-win32.c: Define WINVER and _WIN32_WINNT as 0x0500 in gdkprivate-win32.h instead of doing it in two source files. (#355212, Mike Edenfield) * gdk/win32/gdkwindow-win32.c: We can also remove the ersatz GetAncestor() for the _MSC_VER && WINVER < 0x0500 case, I hope.
* Commit a patch by Behdad to fix typos, omissions and other errors in theMatthias Clasen2006-09-108-14/+30
| | | | | | | | 2006-09-10 Matthias Clasen <mclasen@redhat.com> * Commit a patch by Behdad to fix typos, omissions and other errors in the symbol aliasing, and add checks for local PLT entries. (#354687, Behdad Esfahbod)
* Fix small theoretical memory leaks. (#353916, Chris Wilson)Matthias Clasen2006-09-091-2/+4
| | | | | | | 2006-09-09 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkfonts-x11.c: Fix small theoretical memory leaks. (#353916, Chris Wilson)
* Special-case shift-tab and map it to GDK_ISO_Left_Tab, fixes bug #350806.Richard Hult2006-09-061-4/+10
| | | | | | | 2006-09-06 Richard Hult <richard@imendio.com> * gdk/quartz/gdkkeys-quartz.c: (maybe_update_keymap): Special-case shift-tab and map it to GDK_ISO_Left_Tab, fixes bug #350806.
* gdk/win32/gdkevents-win32.c Use wide-char API for message and windowTor Lillqvist2006-09-032-63/+62
| | | | | | | | | | 2006-09-04 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkevents-win32.c * gdk/win32/gdkwindow-win32.c: Use wide-char API for message and window handling (PeekMessage, PostMessage, SendMessage, DispatchMessage, DefWindowProc, RegisterClassEx, CreateWindowEx). (#321597)
* Don't do anything if exposure isn't in the event mask, plug a leak, andRichard Hult2006-09-031-1/+11
| | | | | | | | | | 2006-09-03 Richard Hult <richard@imendio.com> * gdk/quartz/GdkQuartzView.c (drawRect): Don't do anything if exposure isn't in the event mask, plug a leak, and check that the window isn't destroyed. (isOpaque): Check that the window isn't destroyed, fixes bug #353028.
* Handle display_name being NULL. (#354004, Chris Wilson)Matthias Clasen2006-09-031-1/+2
| | | | | | | | 2006-09-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmain.c (post_parse_hook): * gdk/gdk.c (gdk_init): Handle display_name being NULL. (#354004, Chris Wilson)
* No GDK_WINDOW_DISPLAY in the Win32 backend.Tor Lillqvist2006-09-021-1/+1
| | | | | | | | | | 2006-09-03 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkwindow-win32.c (gdk_window_beep): No GDK_WINDOW_DISPLAY in the Win32 backend. * gtk/gtkfilesystemwin32.c: Copy what Kris did to gtkfilesystemunix.c
* Fix build.Michael Natterer2006-08-311-2/+1
| | | | | | 2006-08-31 Michael Natterer <mitch@imendio.com> * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Fix build.
* Fix build.Richard Hult2006-08-301-1/+1
| | | | | | 2006-08-30 Richard Hult <richard@imendio.com> * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): Fix build.
* Fix gdk_window_beepMatthias Clasen2006-08-301-5/+11
|
* Add a function to beep on a window. For X11, implement this with XkbBell.Matthias Clasen2006-08-306-0/+48
| | | | | | | | | | | | | 2006-08-29 Matthias Clasen <mclasen@redhat.com> * gdk/gdkwindow.h: * gdk/gdk.symbols: * gdk/directfb/gdkwindow-directfb.c (gdk_window_beep): * gdk/win32/gdkwindow-win32.c (gdk_window_beep): * gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): * gdk/x11/gdkwindow-x11.c (gdk_window_beep): Add a function to beep on a window. For X11, implement this with XkbBell. (#353455, Mariano Suárez-Alvarez)
* Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x since 2.6 orTor Lillqvist2006-08-301-12/+9
| | | | | | | | | | | | | | 2006-08-29 Tor Lillqvist <tml@novell.com> Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x since 2.6 or 2.8. It's pointless to keep the Win9x code in here as it isn't being maintained anyway. If somebody is interested, it can always be found in older GTK+ versions, and in CVS. * gdk/win32/gdkwindow-win32.c: Remove the G_WIN32_IS_NT_BASED() and G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x) branches, and any variables or static functions used only by the Win9x branches.
* Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x since 2.6 orTor Lillqvist2006-08-2910-586/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-08-29 Tor Lillqvist <tml@novell.com> Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x since 2.6 or 2.8. It's pointless to keep the Win9x code in here as it isn't being maintained anyway. If somebody is interested, it can always be found in older GTK+ versions, and in CVS. * gdk/win32/gdkcursor-win32.c * gdk/win32/gdkdnd-win32.c * gdk/win32/gdkdrawable-win32.c * gdk/win32/gdkgc-win32.c * gdk/win32/gdkglobals-win32.c * gdk/win32/gdkkeys-win32.c * gdk/win32/gdkmain-win32.c * gdk/win32/gdkproperty-win32.c * gdk/win32/gdkselection-win32.c: Remove the G_WIN32_IS_NT_BASED() and G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x) branches, and any variables or static functions used only by the Win9x branches. * gdk/win32/gdkprivate-win32.h: Remove backup definitions for constants that aren't missing from current mingw and MSVC6 headers. * gdk/win32/gdkmain-win32.c * gdk/win32/gdkprivate-win32.h: Remove the _gdk_win32_gdi_failed() function. On NT-based Windows GetLastError() returns error codes also for failed GDI calls, so we can use _gdk_win32_api_failed() always.
* Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x since 2.6 orTor Lillqvist2006-08-294-112/+1
| | | | | | | | | | | | | | | | | | | | | | | | 2006-08-29 Tor Lillqvist <tml@novell.com> Remove support for Windows 9x/ME. GTK+ hasn't worked on Win9x since 2.6 or 2.8. It's pointless to keep the Win9x code in here as it isn't being maintained anyway. If somebody is interested, it can always be found in older GTK+ versions, and in CVS. * configure.in * acconfig.h * gdk/Makefile.am * gdk/win32/Makefile.am * gdk/win32/libie55uid.la * gdk/win32/gdkevents-win32.c: Remove the --with-ie55 configure switch and associated stuff. Active IMM and the <dimm.h> header was used for IM support on NT4 and Win9x. Win2k and later have IM support built-in. * gdk/win32/gdkevents-win32.c: Remove the G_WIN32_IS_NT_BASED() and G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x) branches, and any variables or static functions used only by the Win9x branches.
* return the hostname instead of NULL.Michael Natterer2006-08-241-3/+6
| | | | | | | 2006-08-24 Michael Natterer <mitch@imendio.com> * gdk/quartz/gdkdisplay-quartz.c (gdk_display_get_name): return the hostname instead of NULL.
* Add Win32 detail to doc comments.Tor Lillqvist2006-08-231-0/+10
| | | | | | | | | | 2006-08-23 Tor Lillqvist <tml@novell.com> * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_mask) (gdk_window_input_shape_combine_mask) gdk_window_shape_combine_region) (gdk_window_input_shape_combine_region): Add Win32 detail to doc comments.
* Add GDK button mask for NS dragging events. (create_scroll_event): RemoveRichard Hult2006-08-153-13/+24
| | | | | | | | | | | | | | | 2006-08-15 Richard Hult <richard@imendio.com> * gdk/quartz/gdkevents-quartz.c: (get_event_mask_from_ns_event): Add GDK button mask for NS dragging events. (create_scroll_event): Remove obsolete comment. (_gdk_quartz_get_current_event_mask), (gdk_event_translate): Keep track of the latest event mask here... * gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_get_pointer): And use it here. Patch from Kristian Rietveld. (gdk_window_quartz_update_idle): Rename to make things clearer.
* Don't leak ShmPixmapInfo. (#349858, Chris Wilson)Matthias Clasen2006-08-151-2/+18
| | | | | | | 2006-08-15 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkdrawable-x11.c (get_shm_pixmap_for_image): Don't leak ShmPixmapInfo. (#349858, Chris Wilson)
* Use XAllocSizeHints to allocate the XSizeHints struct. (#249285, DavidMatthias Clasen2006-08-151-19/+25
| | | | | | | | 2006-08-15 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkwindow-x11.c (gdk_window_get_geometry_hints): Use XAllocSizeHints to allocate the XSizeHints struct. (#249285, David Baron)
* Zero out some stack-allocated X structures, to avoid valgrind warningsMatthias Clasen2006-08-152-0/+6
| | | | | | | | | | 2006-08-15 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkdnd-x11.c (gdk_window_register_dnd): * gdk/x11/gdkwindow-x11.c (gdk_window_set_decorations): (gdk_window_set_functions): Zero out some stack-allocated X structures, to avoid valgrind warnings about uninitialized memory. (#349382, David Baron)
* gdk/directfb/gdkdrawable-directfb.c Remove gdk_directfb_update_region andMichael David Emmel2006-08-113-70/+10
| | | | | | | | | * gdk/directfb/gdkdrawable-directfb.c Remove gdk_directfb_update_region and calls * gdk/directfb/gdkwindow-directfb.c Code cleanup * gdk/directfb/gdkgeometry-directfb.c Fix scroll call to use region
* don't try to set the state of unmapped windows, callMichael Natterer2006-08-101-10/+68
| | | | | | | | | | | | | | | 2006-08-10 Michael Natterer <mitch@imendio.com> * gdk/quartz/gdkwindow-quartz.c (gdk_window_maximize) (gdk_window_unmaximize) (gdk_window_iconify) (gdk_window_deiconify): don't try to set the state of unmapped windows, call gdk_synthesize_window_state() instead. Also added autorelease pools back, seems they are needed after all. * gdk/quartz/gdkwindow-quartz.c (show_window_internal): maximize and iconify windows here if the state says so.
* implement MIN_SIZE, MAX_SIZE and RESIZE_INC.Michael Natterer2006-08-081-4/+72
| | | | | | | 2006-08-09 Michael Natterer <mitch@imendio.com> * gdk/quartz/gdkwindow-quartz.c (gdk_window_set_geometry_hints): implement MIN_SIZE, MAX_SIZE and RESIZE_INC.
* Shutup CVSMichael Natterer2006-08-081-0/+5
|
* Whitespace cleanup. (synthesize_crossing_events): Add comments and preventRichard Hult2006-08-081-5/+12
| | | | | | | 2006-08-08 Richard Hult <richard@imendio.com> * gdk/quartz/gdkevents-quartz.c: (poll_func): Whitespace cleanup. (synthesize_crossing_events): Add comments and prevent a crash.
* implement.Michael Natterer2006-08-081-16/+29
| | | | | | | | | | | 2006-08-08 Michael Natterer <mitch@imendio.com> * gdk/quartz/gdkwindow-quartz.c (gdk_window_maximize) (gdk_window_unmaximize): implement. (gdk_window_iconify) (gdk_window_deiconify): remove unneeded autorelease pools.
* Just expose the minimal region instead of the whole rect.Richard Hult2006-08-082-24/+113
| | | | | | | | | | | | | | | | | 2006-08-08 Richard Hult <richard@imendio.com> * gdk/quartz/GdkQuartzView.c: Just expose the minimal region instead of the whole rect. * gdk/quartz/gdkwindow-quartz.c: (gdk_window_quartz_process_all_updates), (gdk_window_update_idle), (gdk_window_impl_quartz_invalidate_maybe_recurse), (gdk_window_impl_quartz_process_updates), (_gdk_windowing_window_destroy): Rework the expose handling so that it works like the X11 backend, using an idle with the right priority instead of relying on quartz to do it. (gdk_window_set_type_hint): Use tornoff instead of submenu as the documentation (and Mitch) suggests.
* some whitespace and indentation cleanup.Michael Natterer2006-08-081-62/+81
| | | | | | | | | | | | | | | | 2006-08-08 Michael Natterer <mitch@imendio.com> * gdk/quartz/gdkdrawable-quartz.c: some whitespace and indentation cleanup. (gdk_quartz_draw_rectangle) (gdk_quartz_draw_arc) (gdk_quartz_draw_polygon) (gdk_quartz_draw_points): for pixel-prefect drawing, stroked coordinates need to go through pixel centers, while filled ones need to go along pixel boundaries. Moved +0.5 adjusting to the if(!filled) branches and added/removed some adjustments where they were wrong.
* Don't get and release the context for each point, just once, speeds upRichard Hult2006-08-071-3/+12
| | | | | | | | 2006-08-07 Richard Hult <richard@imendio.com> * gdk/quartz/gdkdrawable-quartz.c (gdk_quartz_draw_points): Don't get and release the context for each point, just once, speeds up drawing many points a lot.
* Free all XKB data. (#349997, Chris Wilson)Matthias Clasen2006-08-061-1/+1
| | | | | | | 2006-08-06 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkkeys-x11.c (gdk_keymap_x11_finalize): Free all XKB data. (#349997, Chris Wilson)
* Removed unused call to GetPositionMichael David Emmel2006-08-021-3/+0
|
* Patch from Erik van Pienbroek to implement drawing bg_pixmaps (#348145).Richard Hult2006-07-312-19/+81
| | | | | | | | | 2006-07-31 Richard Hult <richard@imendio.com> * gdk/quartz/gdkdrawable-quartz.c: (gdk_quartz_draw_drawable): * gdk/quartz/gdkwindow-quartz.c: (gdk_window_impl_quartz_begin_paint_region): Patch from Erik van Pienbroek to implement drawing bg_pixmaps (#348145).
* Always set success to TRUE. (gdk_color_change): Implement.Richard Hult2006-07-299-58/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-07-29 Richard Hult <richard@imendio.com> * gdk/quartz/gdkcolor-quartz.c (gdk_colormap_alloc_colors): Always set success to TRUE. (gdk_color_change): Implement. * gdk/quartz/GdkQuartzWindow.c ([GdkQuartzWindow -canBecomeKeyWindow]): Add comment. * gdk/quartz/gdkevents-quartz.c (gdk_screen_get_setting): Make the default font a bit smaller until we have made this get the system setting. * gdk/quartz/gdkwindow-quartz.c (gdk_window_set_type_hint): Enable shadows for the right window types. * gdk/quartz/gdkprivate-quartz.h: * gdk/quartz/gdkgc-quartz.c: * gdk/quartz/gdkdrawable-quartz.c: * gdk/quartz/gdkcolor-quartz.c: Expose the CGContext functions, update callers. * gdk/quartz/gdkmain-quartz.c: (_gdk_windowing_init): No need to get the current process ID, use the right constant instead.