summaryrefslogtreecommitdiff
path: root/gdk
Commit message (Collapse)AuthorAgeFilesLines
* Handle page up and page down.Anders Carlsson2006-04-121-0/+2
| | | | | | | 2006-04-12 Anders Carlsson <andersca@imendio.com> * gdk/quartz/gdkkeys-quartz.c: Handle page up and page down.
* Don't flush if we're inside a begin_paint/end_paint pair.Anders Carlsson2006-04-122-1/+8
| | | | | | | | | | | | 2006-04-12 Anders Carlsson <andersca@imendio.com> * gdk/quartz/gdkdrawable-quartz.c: (_gdk_quartz_drawable_release_context): Don't flush if we're inside a begin_paint/end_paint pair. * gdk/quartz/gdkwindow-quartz.c: (gdk_window_impl_quartz_end_paint): Free clip region here.
* Fix another Coverity bugMatthias Clasen2006-04-121-1/+4
|
* Have GdkWindowImplQuartz implement GdkPaintable.Anders Carlsson2006-04-104-23/+163
| | | | | | | | | | | | | | | | | | | | | | 2006-04-11 Anders Carlsson <andersca@mac.imendio.com> * gdk/quartz/GdkQuartzView.c: (-[GdkQuartzView drawRect:]): * gdk/quartz/gdkdrawable-quartz.c: (gdk_quartz_ref_cairo_surface): (_gdk_quartz_drawable_get_context): (_gdk_quartz_drawable_release_context): * gdk/quartz/gdkwindow-quartz.c: (gdk_window_impl_quartz_finalize): (gdk_window_impl_quartz_class_init): (gdk_window_impl_quartz_begin_paint_region): (gdk_window_impl_quartz_end_paint): (gdk_window_impl_quartz_invalidate_maybe_recurse): (gdk_window_impl_quartz_process_updates): (gdk_window_impl_quartz_paintable_init): (_gdk_window_impl_quartz_get_type): * gdk/quartz/gdkwindow-quartz.h: Have GdkWindowImplQuartz implement GdkPaintable.
* Add new GdkPaintable interface which implementation objects can implementAnders Carlsson2006-04-102-0/+89
| | | | | | | | | | | | | | 2006-04-11 Anders Carlsson <andersca@imendio.com> * gdk/gdkinternals.h: * gdk/gdkwindow.c: (_gdk_paintable_get_type): (gdk_window_begin_paint_region): (gdk_window_end_paint): (gdk_window_process_updates): (gdk_window_invalidate_maybe_recurse): Add new GdkPaintable interface which implementation objects can implement in order to override gdk painting functions.
* Correct the appearance of non-square icons and cursors: pad them to squareTor Lillqvist2006-04-061-28/+55
| | | | | | | | | | | | | 2006-04-06 Tor Lillqvist <tml@novell.com> Correct the appearance of non-square icons and cursors: pad them to square so that Windows won't stretch them. * gdk/win32/gdkcursor-win32.c (create_alpha_bitmap) (create_color_bitmap): Always create square bitmaps, take only side length as argument. (pixbuf_to_hbitmaps_alpha_winxp, pixbuf_to_hbitmaps_normal): Corresponding changes.
* Add "_private" to make it build.Søren Sandmann2006-04-041-1/+1
| | | | | | | Tue Apr 4 12:25:36 2006 Søren Sandmann <sandmann@redhat.com> * gdk/x11/gdkimage-x11.c (gdk_image_class_init): Add "_private" to make it build.
* Use G_DEFINE_TYPE.Matthias Clasen2006-04-0417-562/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | 2006-04-04 Matthias Clasen <mclasen@redhat.com> * gdk/gdkdisplay.c: * gdk/gdkdisplaymanager.c: * gdk/gdkdraw.c: * gdk/gdkkeys.c: * gdk/gdkpixmap.c: * gdk/gdkscreen.c: * gdk/gdkwindow.c: * gdk/x11/gdkcolor-x11.c: * gdk/x11/gdkdisplay-x11.c: * gdk/x11/gdkdnd-x11.c: * gdk/x11/gdkdrawable-x11.c: * gdk/x11/gdkgc-x11.c: * gdk/x11/gdkimage-x11.c: * gdk/x11/gdkinput.c: * gdk/x11/gdkpixmap-x11.c: * gdk/x11/gdkscreen-x11.c: * gdk/x11/gdkwindow-x11.c: Use G_DEFINE_TYPE. * gdk/x11/gdkcolor-x11.c: * gdk/x11/gdkdnd-x11.c: * gdk/x11/gdkimage-x11.c: Use instance private data.
* Small savingsMatthias Clasen2006-04-041-16/+6
|
* Here too.Matthias Clasen2006-04-031-1/+1
| | | | | | 2006-04-03 Matthias Clasen <mclasen@redhat.com> * gdk/gdk.c: Here too.
* Make _gdk_windowing_args const.Matthias Clasen2006-04-035-5/+5
| | | | | | | | | | 2006-04-03 Matthias Clasen <mclasen@redhat.com> * gdk/gdkinternals.h: * gdk/x11/gdkmain-x11.c: * gdk/win32/gdkmain-win32.c: * gdk/directfb/gdkdisplay-directfb.c: * gdk/quartz/gdkmain-quartz.c: Make _gdk_windowing_args const.
* Include gdksreen.h (#337032, Kazuki IWAMOTO)Matthias Clasen2006-04-031-0/+1
| | | | | | | 2006-04-03 Matthias Clasen <mclasen@redhat.com> * gdk/win32/gdkpixmap-win32.c: Include gdksreen.h (#337032, Kazuki IWAMOTO)
* Reword docs to help gtk-doc.Matthias Clasen2006-03-301-1/+2
| | | | | | | 2006-03-30 Matthias Clasen <mclasen@redhat.com> * gdk/gdkregion-generic.c (gdk_region_get_clipbox): Reword docs to help gtk-doc.
* Added gdk_pixmap_foreign_new_for_screenMichael David Emmel2006-03-301-0/+12
|
* Make it compileMatthias Clasen2006-03-301-1/+2
|
* New function to allow wrapping a native pixmap without a server roundtrip.Matthias Clasen2006-03-304-7/+70
| | | | | | | | | | | 2006-03-29 Matthias Clasen <mclasen@redhat.com> * gdk/gdk.symbols: * gdk/gdkpixmap.h: * gdk/win32/gdkpixmap-win32.c: * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new_for_screen): New function to allow wrapping a native pixmap without a server roundtrip. (#334954, David Baron)
* Add missing CLIPBOARD atom.Richard Hult2006-03-291-4/+5
| | | | | | 2006-03-29 Richard Hult <richard@imendio.com> * gdk/quartz/gdkproperty-quartz.c: Add missing CLIPBOARD atom.
* Make the poll func work with real file descriptors. We do this by creatingAnders Carlsson2006-03-271-3/+140
| | | | | | | | | | | | | | | | | 2006-03-27 Anders Carlsson <andersca@imendio.com> * gdk/quartz/gdkevents-quartz.c: (select_thread_func): (got_fd_activity): (poll_func): (gdk_event_translate): Make the poll func work with real file descriptors. We do this by creating a thread which calls poll and then signals the main thread using a run loop source. * gtk/gtkclipboard-quartz.c: (-[GtkClipboardOwner pasteboard:provideDataForType:]): Remove debugging output
* Add more stubs.Richard Hult2006-03-2710-2/+190
| | | | | | 2006-03-27 Richard Hult <richard@imendio.com> * gdk/quartz: Add more stubs.
* removing trailing \ fixes the build.Michael Natterer2006-03-211-1/+1
| | | | | | 2006-03-21 Michael Natterer <mitch@imendio.com> * gdk/quartz/Makefile.am: removing trailing \ fixes the build.
* Implement gdk_window_scroll.Anders Carlsson2006-03-211-1/+47
| | | | | | | | 2006-03-21 Anders Carlsson <andersca@imendio.com> * gdk/quartz/gdkgeometry-quartz.c: (gdk_window_scroll): Implement gdk_window_scroll.
* Add the GDK part of the DND implementation.Anders Carlsson2006-03-217-10/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-21 Anders Carlsson <andersca@imendio.com> * gdk/quartz/GdkQuartzWindow.c: (drag_operation_to_drag_action): (drag_action_to_drag_operation): (update_context_from_dragging_info): (-[GdkQuartzWindow draggingEntered:]): (-[GdkQuartzWindow draggingEnded:]): (-[GdkQuartzWindow draggingExited:]): (-[GdkQuartzWindow draggingUpdated:]): (-[GdkQuartzWindow performDragOperation:]): (-[GdkQuartzWindow wantsPeriodicDraggingUpdates]): (-[GdkQuartzWindow draggedImage:endedAt:operation:]): * gdk/quartz/gdkdnd-quartz.c: (gdk_drag_context_finalize): (gdk_drag_context_init): (gdk_drag_context_class_init): (gdk_drag_begin): (gdk_drag_status): Add the GDK part of the DND implementation. * gdk/quartz/Makefile.am: Add some missing headers. * gdk/quartz/gdkdrawable-quartz.h: * gdk/quartz/gdkprivate-quartz.h: * gdk/quartz/gdkquartz.h: * gdk/quartz/gdkwindow-quartz.c: (gdk_quartz_window_get_nsview): New function, for use by the GTK part of the DND implementation
* Offset coordinates by 0.5 pixels to get consistant results for both imageAnders Carlsson2006-03-212-29/+22
| | | | | | | | | | | | | | | | | | | 2006-03-21 Anders Carlsson <andersca@imendio.com> * gdk/quartz/gdkdrawable-quartz.c: (gdk_quartz_ref_cairo_surface): (gdk_quartz_draw_rectangle): (gdk_quartz_draw_arc): (gdk_quartz_draw_polygon): (gdk_quartz_draw_drawable): (gdk_quartz_draw_segments): (gdk_quartz_draw_lines): (gdk_quartz_draw_pixbuf): (gdk_quartz_draw_image): (_gdk_quartz_drawable_get_context): * gdk/quartz/gdkdrawable-quartz.h: Offset coordinates by 0.5 pixels to get consistant results for both image contexts and screen contexts.
* ]): Synthesize GDK_CONFIGURE events when the window position changes.Anders Carlsson2006-03-211-0/+22
| | | | | | | | 2006-03-21 Anders Carlsson <andersca@imendio.com> * gdk/quartz/GdkQuartzWindow.c ([GdkQuartzWindow -windowDidMove:]): Synthesize GDK_CONFIGURE events when the window position changes.
* Added checksettings.Behdad Esfahbod2006-03-151-0/+1
|
* Use Polygon() for outlined polygons, too. Same idea as inTor Lillqvist2006-03-111-19/+9
| | | | | | | | | | | 2006-03-11 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkdrawable-win32.c (draw_polygon): Use Polygon() for outlined polygons, too. Same idea as in draw_rectangle(): Set pen to NULL_PEN if drawing a filled polygon, set brush to HOLLOW_BRUSH if drawing a polygon outline. (#332662) (gdk_win32_draw_polygon): Corresponding simplification: no need to add an extra final copy of the starting point.
* gdk/gdkscreen.h gdk/x11/gdkscreen-x11.c addedMichael Natterer2006-03-086-0/+196
| | | | | | | | | | | | | | 2006-03-08 Michael Natterer <mitch@imendio.com> * gdk/gdkscreen.h * gdk/x11/gdkscreen-x11.c * gdk/gdk.symbols: added gdk_screen_get_active_window() and gdk_screen_get_window_stack() (patch from maemo-gtk). Fixes bug #320881. * gdk/directfb/gdkscreen-directfb.c * gdk/quartz/gdkscreen-quartz.c * gdk/win32/gdkscreen-win32.c: added the functions as stubs.
* Adjust the handling of min values for the x and y axes of extended inputMatthias Clasen2006-03-041-2/+4
| | | | | | | | | 2006-03-04 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkinput-x11 (gdk_input_translate_coordinates): Adjust the handling of min values for the x and y axes of extended input devices (#324562, #142536, Denis Auroux and Robert Ögren)
* map "gtk-touchscreen-mode" to the "Gtk/TouchscreenMode" XSettingsMichael Natterer2006-02-272-5/+13
| | | | | | | | | | | 2006-02-27 Michael Natterer <mitch@imendio.com> * gdk/x11/gdksettings.c: map "gtk-touchscreen-mode" to the "Gtk/TouchscreenMode" XSettings property, remove trailing whitespace. * gdk/x11/checksettings.c: #include <string.h> and sprinkled some newlines.
* moved and renamed the gdk_settings_names and gdk_settings_map.Tim Janik2006-02-274-84/+160
| | | | | | | | | | | | Mon Feb 27 14:52:50 2006 Tim Janik <timj@imendio.com> * gdkevents-x11.c: * gdksettings.c: moved and renamed the gdk_settings_names and gdk_settings_map. * gdk/x11/checksettings.c: test program for the gdk_settings_map array. * gdk/x11/Makefile.am: run checksettings as part of make check.
* Removed old build instructionsMichael David Emmel2006-02-261-59/+8
|
* *gdk/directfb/gdkdisplay-directfb.c *gdk/directfb/gdkwindow-directfb.cPST 2006 Michael Emmel2006-02-253-37/+41
| | | | | | | Sat Feb 25 10:35:23 PST 2006 Michael Emmel <mike.emmel@gmail.com> *gdk/directfb/gdkdisplay-directfb.c *gdk/directfb/gdkwindow-directfb.c Added stubs for shape window functions to fix compile problems
* remove unconditional warnings about missing X locale support. Gdk properlyTim Janik2006-02-241-5/+2
| | | | | | | | Thu Feb 23 13:28:21 2006 Tim Janik <timj@imendio.com> * gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale): remove unconditional warnings about missing X locale support. Gdk properly handles this situation anyway.
* Add these from the win32 backend.Anders Carlsson2006-02-211-2/+94
| | | | | | | | | 2006-02-21 Anders Carlsson <andersca@imendio.com> * gdk/quartz/gdkselection-quartz.c: (make_list): (gdk_text_property_to_utf8_list_for_display): Add these from the win32 backend.
* Obtain the background color from the gc when it is needed. (#331820)Matthias Clasen2006-02-201-6/+2
| | | | | | | 2006-02-20 Matthias Clasen <mclasen@redhat.com> * gdk/gdkgc.c (_gdk_gc_update_context): Obtain the background color from the gc when it is needed. (#331820)
* Forgotten fileMatthias Clasen2006-02-201-1/+2
|
* Add a gc_changed argument, and avoid setting the clip region if the gc hasMatthias Clasen2006-02-203-18/+63
| | | | | | | | | | | | | 2006-02-19 Matthias Clasen <mclasen@redhat.com> * gdk/gdkgc.c (_gdk_gc_update_context): Add a gc_changed argument, and avoid setting the clip region if the gc has not changed. * gdk/gdkgc.c: Update all callers. * gdk/gdkpango.c (get_cairo_context): Avoid updating the context if nothing changed.
* Add stubs for input shape functions.Anders Carlsson2006-02-202-0/+53
| | | | | | | | | | | | | | | | 2006-02-20 Anders Carlsson <andersca@imendio.com> * gdk/quartz/gdkdisplay-quartz.c: (gdk_display_supports_shapes): (gdk_display_supports_input_shapes): * gdk/quartz/gdkwindow-quartz.c: (gdk_display_warp_pointer): (gdk_window_input_shape_combine_mask): (gdk_window_input_shape_combine_region): (gdk_window_set_child_input_shapes): (gdk_window_set_accept_focus): (gdk_window_merge_child_input_shapes): Add stubs for input shape functions.
* Fix typo so ctrl gets passed on to the gdk event.Anders Carlsson2006-02-202-2/+2
| | | | | | | | | | | | 2006-02-20 Anders Carlsson <andersca@mac.com> * gdk/quartz/gdkevents-quartz.c: (get_keyboard_modifiers_from_nsevent): Fix typo so ctrl gets passed on to the gdk event. * gdk/quartz/gdkproperty-quartz.c: (gdk_atom_name): g_strdup the atom name.
* New function, return TRUE. (gdk_display_supports_input_shapes): NewTor Lillqvist2006-02-201-0/+20
| | | | | | | | 2006-02-20 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkdisplay-win32.c (gdk_display_supports_shapes): New function, return TRUE. (gdk_display_supports_input_shapes): New function, return FALSE.
* New function. Factor out code from gdk_window_shape_combine_mask().Tor Lillqvist2006-02-201-19/+107
| | | | | | | | | | | | | | 2006-02-20 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkwindow-win32.c (do_shape_combine_region): New function. Factor out code from gdk_window_shape_combine_mask(). (gdk_window_shape_combine_region): Actually do something. Convert region to a HRGN and call do_shape_combine_region(). (gdk_window_input_shape_combine_mask) (gdk_window_input_shape_combine_region) (gdk_window_set_child_input_shapes) (gdk_window_merge_child_input_shapes): New functions, dummy implementations.
* adding boolean have_shapes and have_input_shapes members fixes the build.Michael Natterer2006-02-201-0/+3
| | | | | | | 2006-02-20 Michael Natterer <mitch@imendio.com> * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): adding boolean have_shapes and have_input_shapes members fixes the build.
* Replace all calls to g_strcasecmp() with g_ascii_strcasecmp().Tor Lillqvist2006-02-201-52/+52
| | | | | | | 2006-02-20 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkfont-win32.c: Replace all calls to g_strcasecmp() with g_ascii_strcasecmp().
* Support input shapes: (#331070)Matthias Clasen2006-02-205-73/+286
| | | | | | | | | | | | | | | | | | | | | | | | 2006-02-19 Matthias Clasen <mclasen@redhat.com> Support input shapes: (#331070) * gdk/gdk.symbols: * gdk/gdkdisplay.h: * gdk/gdkwindow.h: * gdk/x11/gdkdisplay-x11.c (gdk_display_supports_shapes) (gdk_display_supports_input_shapes): Functions to determine if a display supports shaped windows or input shapes. * gdk/x11/gdkwindow-x11.c (gdk_window_input_shape_combine_region): (gdk_window_input_shape_combine_mask): (gdk_window_set_child_input_shapes): (gdk_window_merge_child_input_shapes): Input shape versions of the window shape API. * gtk/gtk.symbols: * gtk/gtkwidget.h: * gtk/gtkwidget.c (gtk_widget_input_shape_combine_mask): New function to set an input shape on a widget.
* Be robust and reject rectangles with negative width or height. (#331467,Matthias Clasen2006-02-171-1/+1
| | | | | | | | 2006-02-17 Matthias Clasen <mclasen@redhat.com> * gdk/gdkregion-generic.c (gdk_region_union_with_rect): Be robust and reject rectangles with negative width or height. (#331467, Benjamin Berg)
* added .cvsignore file to shut up CVSSven Neumann2006-02-091-0/+7
|
* If we don't know where we went, and have generated a leave event, setTor Lillqvist2006-02-091-0/+1
| | | | | | | | | | 2006-02-09 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkevents-win32.c (gdk_event_translate) <WM_MOUSELEAVE>: If we don't know where we went, and have generated a leave event, set current_window to the root window. This assures we will generate proper enter and leave events for popup windows. (#325521)
* gdk/win32/gdkevents-win32.c (gdk_event_translate) <WM_MOUSEACTIVATE> CallJohn Ehresman2006-02-092-3/+20
| | | | | | | | | | | 2006-02-08 John Ehresman <jpe@wingware.com> * gdk/win32/gdkevents-win32.c (gdk_event_translate) <WM_MOUSEACTIVATE> * gdk/win32/gdkwindow-win32.c (show_window_internal) (gdk_window_raise): Call SetWindowPos() instead of SetForegroundWindow() or BringWindowToTop() if the window shouldn't accept focus. (#327375)
* Let gdk_window_set_decorations() take precedence over anything derivedJohn Ehresman2006-02-091-96/+134
| | | | | | | | 2006-02-08 John Ehresman <jpe@wingware.com> * gdk/win32/gdkwindow-win32.c: Let gdk_window_set_decorations() take precedence over anything derived from hints. Restructure related code and logic, add some new helper functions. (#327217)
* Consistenly use assign_object() when assigning GdkWindow pointers so thatTor Lillqvist2006-02-081-7/+22
| | | | | | | | | | | | | | | | 2006-02-08 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkevents-win32.c (gdk_pointer_grab) (gdk_display_pointer_ungrab, gdk_keyboard_grab) (gdk_display_keyboard_ungrab): Consistenly use assign_object() when assigning GdkWindow pointers so that the ref counting doesn't get off whack. (handle_stuff_while_moving_or_resizing): Don't use deprecated API. (gdk_event_translate) <WM_MOUSEMOVE>: When the pointer is grabbed with owner_events FALSE, generate enter and leave events only for the grab window. (#321054)