summaryrefslogtreecommitdiff
path: root/gdk/gdkwindow.h
Commit message (Collapse)AuthorAgeFilesLines
* Bug 318807 – Offscreen windows and window redirection.10:49:20 Tim Janik2008-05-211-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-03-18 10:49:20 Tim Janik <timj@imendio.com> * Applied pixmap redirection patch by Alexander Larsson with various updates from: Bug 318807 – Offscreen windows and window redirection. Updates: * updated docs to mention "Since 2.16". * tests/testgtk.c: fixed snapshooting pixmap leak. convert pixmap to pixbuf after snapshooting, to compensate for different bit depths (occurs when snapshooting ARGB visuals and displaying the pixmap in an RGB visual). * gdk/gdkwindow.[hc]: made GdkWindowRedirect private. * gdk/gdkwindow.c: removed damage idle handler, there's no aparent need for it. enqueue damage notification as GDK_DAMAGE events for each painting redirection at the start of the event queue. consider windows with a redirection fully visible when invalidating, and when updating from backing store. cleaned up stale variables. * gdk/gdkevents.c: added _gdk_event_queue_prepend(). * gtk/gtkwidget.c: fixed coordinates for !NO_WINDOW widgets in gtk_widget_get_snapshot; this fixes garbage snap offsets for gammacurve, tree, drawingarea, text, handlebox, etc. clip the redirected window hierarchy to window sizes, the visible rectangles don't need to be taken into account here. extended snapshooting docs to recommend gdk_pixbuf_get_from_drawable() in case pixmap visuals could mismatch. * gdk/x11/gdkwindow-x11.c: removed _gdk_windowing_window_get_visible_rect(). Base patch: * tests/testgtk.c: add a "Snapshot" test to demonstrate snapshooting of possibly obscured widgets into an offscreen pixmap. * gtk/gtkwidget.[hc]: add GtkWidget::damage-event signal, add gtk_widget_get_snapshot() to render a widget's contents to a GdkPixmap. * gtk/gtkmain.c: dispatch GDK_DAMAGE events. * gdk/gdkwindow.c: moved outer gdk_window_new() and gdk_window_reparent() implementations here, adapted them to propagate redirects to child windows. gdk_window_end_paint(): copy repainted window contents to redirection pixmap, clipped to visible region. queue GDK_DAMAGE event delivery. gdk_window_redirect_to_drawable(): install window painting redirection. gdk_window_remove_redirection(): remove previously installed redirection. * gdk/x11/gdkwindow-x11.c: added _gdk_windowing_window_get_visible_rect(), renamed _gdk_window_new() and _gdk_window_reparent(). * gdk/gdkwindow.h: added GdkWindowRedirect* to GdkWindowObject, export gdk_window_redirect_to_drawable() and gdk_window_remove_redirection(). * gdk/gdkevents.h: added GDK_DAMAGE event type. * gdk/gdkevents.c: extract time and state from GDK_DAMAGE events. * gdk/gdkinternals.h: added internal prototypes. svn path=/trunk/; revision=20122
* gdk/gdkdisplay.h gdk/gdkdrawable.h gdk/gdkevents.h gdk/gdkpango.hMichael Natterer2008-01-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* gdk/gdk.h gdk/gdkcairo.h gdk/gdkcolor.h gdk/gdkgc.h gdk/gdkinternals.hMichael Natterer2008-01-141-41/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fixes #426246.Kristian Rietveld2007-09-121-0/+5
| | | | | | | | | | | | | | | | | | | | | | | 2007-09-12 Kristian Rietveld <kris@imendio.com> Fixes #426246. * gdk/gdk.symbols: * gdk/gdkwindow.[ch] (gdk_window_freeze_toplevel_updates_libgtk_only), (gdk_window_thaw_toplevel_updates_libgtk_only): new functions to freeze a toplevel window and all its descendants. To be made public in 2.14, (gdk_window_schedule_update): return if toplevel is frozen, (gdk_window_process_all_updates): defer processing updates if toplevel is frozen. * gtk/gtkwindow.c (gtk_window_configure_event): directly size allocate for override redirect windows, freeze toplevel and descendants otherwise and wait until resizing is done. svn path=/trunk/; revision=18802
* Add support for composited child windows. (#412882, Ryan Lortie)Matthias Clasen2007-06-011-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-01 Matthias Clasen <mclasen@redhat.com> Add support for composited child windows. (#412882, Ryan Lortie) * gdk/gdk.symbols: * gdk/gdkdisplay.h: * gdk/gdkinternals.h: * gdk/gdkwindow.[hc]: Add gdk_display_supports_composite() and gdk_window_set_composited(). * gdk/x11/gdkevents-x11.c: * gdk/x11/gdkdisplay-x11.[hc]: * gdk/x11/gdkwindow-x11.[hc]: X11 implementation. * gdk/win32/gdkdisplay-win32.c: * gdk/win32/gdkwindow-win32.c: Dummy win32 implementration. * gdk/quartz/gdkdisplay-quartz.c: * gdk/quartz/gdkwindow-quartz.c: Dummy Quartz implementation. * gdk/directfb/gdkdisplay-directfb.c: * gdk/directfb/gdkwindow-directfb.c: Dummy DirectFB implementation. * tests/testgtk.c: Add a "composited window" test. svn path=/trunk/; revision=18004
* Add functionality to set overall opacity of a top-level window. (#405316)Tor Lillqvist2007-04-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | 2007-04-30 Tor Lillqvist <tml@novell.com> Add functionality to set overall opacity of a top-level window. (#405316) * gdk/gdk.symbols: Add gdk_window_set_opacity. * gdk/x11/gdkwindow-x11.c * gdk/win32/gdkwindow-win32.c: Implement gdk_window_set_opacity(). On X11 use the _NET_WM_WINDOW_OPACITY property. On Win32 use SetLayeredWindowAttributes(LWA_ALPHA). * gdk/gdkwindow.h: Declare gdk_window_set_opacity(). * gdk/x11/gdkscreen-x11.c (gdk_screen_get_rgba_colormap): Document that this is not implemented in the Windows backend. Add reference to gdk_window_set_opacity(). svn path=/trunk/; revision=17730
* Win32 drop shadow goodnessCody Russell2007-04-251-8/+10
| | | | svn path=/trunk/; revision=17643
* Apply patch by Vytautas Liuolia for changing the startup notification idEmmanuele Bassi2007-03-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-03-13 Emmanuele Bassi <ebassi@gnome.org> Apply patch by Vytautas Liuolia for changing the startup notification id on a window in the X11 backend. (#347375) * gdk/gdk.h: * gdk/gdkx.h: * gdk/x11/gdkdisplay-x11.c: Add gdk_notify_startup_complete_wit_id() and gdk_x11_display_get_startup_notification_id(). * gdk/gdkwindow.h: * gdk/x11/gdkwindow-x11.c: Add gdk_window_set_startup_id(). * gtk/gtkwindow.h: * gtk/gtkwindow.c: Add gtk_window_set_startup_id(), used to change the startup notification id. (gtk_window_class_init), (gtk_window_init), (gtk_window_set_property): Add write-only "startup-id" property to GtkWindow. (gtk_window_realize): Set the startup notification id on a GtkWindow if it's valid. (gtk_window_map): If we have another valid startup notification id then finish the notification process. svn path=/trunk/; revision=17508
* Add a function to beep on a window. For X11, implement this with XkbBell.Matthias Clasen2006-08-301-0/+1
| | | | | | | | | | | | | 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)
* Create 'composited' label.Søren Sandmann2006-04-251-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Apr 25 10:25:28 2006 Søren Sandmann <sandmann@redhat.com> * tests/testgtk.c (create_alpha_window): Create 'composited' label. * tests/testgtk.c (on_composited_changed): New function, change the label to say whether the screen is composited or not. * gtk/gtkwindow.c (gtk_window_on_composited_changed): When composited status change, invalidate the window and propagate the signal;. * gtk/gtkwindow.c (gtk_window_map): Set the appropriate type hint if reset_type_hint is TRUE. * gtk/gtkwindow.c (gtk_window_set_type_hint): If hint is one of the old hints, store a shadow copy in the public window->type_hint bitfield, otherwise set this field to normal. Set the private field to the type hint. * gtk/gtkwindow.c (gtk_window_init): Initialize priv->type_hint. * gtk/gtkwindow.c (struct _GtkWindowPrivate): New field "reset_type_hint" indicating whether the type hint needs to be reset. New field type_hint containing a GdkWindowTypeHint. * gtk/gtkwidget.c (propagate_composited_changed): New function to propagate changes in composited status. (gtk_widget_class_init): Add composited_changed signal. * gtk/gtkwidget.h (struct _GtkWidgetClass): New signal composited-changed. * gtk/gtkwidget.c (gtk_widget_is_composited): New function. * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Set transient for. * gtk/gtktooltips.c (gtk_tooltips_force_window): Set the type hint * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Compute whether the item belongs to a menubar. Set the type_hint appropriately depending on the outcome. * gtk/gtkmenu.c (gtk_menu_position): Set the default type hint here. * gtk/gtkmenu.c (gtk_menu_attach_to_widget): connect to hierarchy changed on the attach widget. * gtk/gtkmenu.c (attach_widget_hierarchy_changed): New function to set the transient_for property for menus. * gtk/gtkdnd.c (set_icon_stock_pixbuf): Set the appropriate type hint. * gtk/gtkcombo.c (gtk_combo_popup_list): Make the popup window transient for the toplevel. * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Set transient-for, for the popup window. * gdk/x11/gdkwindow-x11.c (gdk_window_get_type_hint): Support for new window types. * gdk/x11/gdkwindow-x11.c (gdk_window_set_type_hint): Add support for new window types. * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change): New function called whenever the compositing manager comes and goes. * gdk/x11/gdkscreen-x11.c (gdk_screen_is_composited): New function. * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_request_cm_notification, make_cm_atom, check_is_composited): New functions * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call _gdk_x11_screen_process_owner_change when an XFixesSelectionNotifyEvent is received. * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Call _gdk_x11_screen_request_cm_notification() on all screens. * gdk/quartz/gdkscreen-quartz.c (gdk_screen_is_composited): Dummy implementation. * gdk/gdkscreen.c (gdk_screen_class_init): New signal, 'composited-changed'. * gdk/gdkwindow.h: Add new EWMH window types. * gdk/win32/gdkscreen-win32.c (gdk_screen_is_composited)
* Support input shapes: (#331070)Matthias Clasen2006-02-201-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* gdk/gdk.symbols gdk/gdkwindow.h added gdk_window_get_type_hint() (patchMichael Natterer2005-11-081-2/+4
| | | | | | | | | 2005-11-08 Michael Natterer <mitch@imendio.com> * gdk/gdk.symbols * gdk/gdkwindow.h * gdk/x11/gdkwindow-x11.c: added gdk_window_get_type_hint() (patch extracted from maemo-gtk). Fixes bug #320872.
* Fix #316871, reported by Dan Winship:Matthias Clasen2005-09-261-0/+1
| | | | | | | | | | | | | | 2005-09-26 Matthias Clasen <mclasen@redhat.com> Fix #316871, reported by Dan Winship: * gdk/gdkwindow.h (struct _GdkWindowObject): Add a shaped flag. * gdk/x11/gdkwindow-x11.c (gdk_window_shape_combine_mask) (gdk_window_shape_combine_region): Set it here. * gdk/gdkwindow.c (gdk_window_invalidate_maybe_recurse): Don't remove the child area for shaped windows.
* Add Copyright/License information.Matthias Clasen2005-07-121-0/+26
|
* New function which can be used to implement scrolling in non-windowMatthias Clasen2005-06-211-0/+4
| | | | | | | | | | 2005-06-21 Matthias Clasen <mclasen@redhat.com> * gdk/gdk.symbols: * gdk/gdkwindow.h: * gdk/x11/gdkgeometry-x11.c (gdk_window_move_region): New function which can be used to implement scrolling in non-window widgets. (#135165, Søren Sandmann)
* Support the ICCCM urgency hint. (#61858, Havoc Pennington)Matthias Clasen2005-06-171-0/+2
| | | | | | | | | | | | | | | | | | | | | 2005-06-17 Matthias Clasen <mclasen@redhat.com> Support the ICCCM urgency hint. (#61858, Havoc Pennington) * gtk/gtk.symbols: * gtk/gtkwindow.[hc]: Add a GtkWindow::urgency-hint property with getter and setter. * gdk/gdk.symbols: * gdk/gdkwindow.h: * gdk/x11/gdkwindow-x11.c (gdk_window_set_urgency_hint): Add a setter for the urgency hint. * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store urgency hint here. * gdk/x11/gdkwindow-x11.c (update_wm_hints): Set the urgency hint in the WM_HINTS property when appropriate.
* Cleanup. (#169648, Fabricio Barros Cabral)Matthias Clasen2005-06-121-6/+2
| | | | | | 2005-06-12 Matthias Clasen <mclasen@redhat.com> * gdk/*.h: Cleanup. (#169648, Fabricio Barros Cabral)
* Bug 143330, support update counter spec.Soeren Sandmann2004-07-111-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun Jul 11 15:24:03 2004 Soeren Sandmann <sandmann@daimi.au.dk> Bug 143330, support update counter spec. * configure.in: Add check for the Sync extension * gdk/gdkwindow.h: gdk_window_enable_synchronized_configure() and gdk_window_configure_finished() * gtk/gtkwindow.c (gtk_window_move_resize): Call gdk_window_finish_configure(). * gtk/gtkwindow.c (gtk_window_realize): Automatically enable synchronized configures. * gdk/x11/gdkwindow-x11.h (struct _GdkToplevelX11): Store current and pending counter values. * gdk/x11/gdkwindow-x11.c (gdk_window_configure_finished): New function. * gdk/x11/gdkwindow-x11.c (gdk_window_enable_synchronized_configure): New function. * gdk/x11/gdkwindow-x11.c (gdk_toplevel_x11_free_contents): Delete update counter. * gdk/x11/gdkwindow-x11.c (set_wm_protocols): Advertise _NET_WM_SYNC_REQUEST when Sync is available * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Handle _NET_WM_SYNC_REQUEST messages * gdk/x11/gdkevents-x11.c (gdk_event_translate): Save counter value for use by gdk_window_configure_finished() when receiving ConfigureNotifies. * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add use_sync flag * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Check if the XSync extension is available * gdk/x11/gdkdisplay-x11.c: Add _NET_WM_SYNC_REQUEST and _NET_WM_SYNC_REQUEST_COUNTER to list of supported atoms. * gdk/linux-fb/gdkwindow-fb.c, gdk/win32/gdkwindow-win32.c: Add stubs for enable_synchronized_configure() and configure_finished()
* Changes to support do-not-focus-on-map hint in conjunction withElijah Newren2004-05-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-05 Elijah Newren <newren@math.utah.edu> Changes to support do-not-focus-on-map hint in conjunction with _NET_WM_USER_TIME (#115650): * gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean field focus_on_map * gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to set it. * gtk/gtkwindow.[hc]: Add a boolean property "focus_on_map" and gtk_window_get_focus_on_map() and gtk_window_set_focus_on_map(). * gdk/win32/gdkwindow-win32.c (gdk_window_new): * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new): * gdk/x11/gdkwindow-x11.c (gdk_window_new): Initialize the focus_on_map field to TRUE. * gdk/win32/gdkwindow-win32.c (gdk_window_set_focus_on_map): * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_focus_on_map): * gdk/x11/gdkwindow-x11.c (gdk_window_set_focus_on_map): * gdk/x11/gdkwindow-x11.c (setup_toplevel_window): Implementations for the various backends. The Win32 and linux-fb implementations set the focus_on_map field, but don't use it yet to actually implement noinput windows. The X implementation sets _NET_WM_USER_TIME to 0 if focus_on_map is FALSE (see the EWMH). * gdk/x11/gdkwindow-x11.h: * gdk/x11/gdkevents-x11.c (set_user_time): * gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event): * gdk/x11/gdkwindow-x11.c (gdk_x11_window_set_user_time): s/_gdk_x11_window_set_user_time/gdk_x11_window_set_user_time/, since we want that function to be part of the public API.
* Fix #105497; constify uses of GdkColor.Federico Mena Quintero2004-01-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-26 Federico Mena Quintero <federico@ximian.com> Fix #105497; constify uses of GdkColor. * gdk/gdkgc.c (gdk_gc_set_rgb_fg_color): Constify. (gdk_gc_set_rgb_bg_color): Constify. (gdk_gc_set_foreground): Constify. * gdk/x11/gdkcursor-x11.c (gdk_cursor_new_from_pixmap): Constify. * gdk/win32/gdkcursor-win32.c (gdk_cursor_new_from_pixmap): Constify. * gdk/linux-fb/gdkcursor-fb.c (gdk_cursor_new_from_pixmap): Constify. * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_create_from_data): Constify. * gdk/win32/gdkpixmap-win32.c (gdk_pixmap_create_from_data): Constify. * gdk/linux-fb/gdkpixmap-fb.c (gdk_pixmap_create_from_data): Constify. * gdk/x11/gdkwindow-x11.c (gdk_window_set_background): Constify. * gdk/win32/gdkwindow-win32.c (gdk_window_set_background): Constify. * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_background): Constify. * gdk/gdkpango.c (gdk_draw_layout_line_with_colors): Constify. (gdk_draw_layout_with_colors): Constify. * gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): Constify. (gdk_pixmap_colormap_create_from_xpm): Constify. (gdk_pixmap_create_from_xpm): Constify. (gdk_pixmap_colormap_create_from_xpm_d): Constify. (gdk_pixmap_create_from_xpm_d): Constify. * gtk/gtkcellview.c (gtk_cell_view_set_background_color): Constify. * gtk/gtkclist.c (gtk_clist_set_foreground): Constify. (gtk_clist_set_background): Constify. * gtk/gtkcolorbutton.c (gtk_color_button_new_with_color): Constify. (gtk_color_button_set_color): Constify. * gtk/gtkcolorsel.c (gtk_color_selection_set_current_color): Constify and add a check for color != NULL. (gtk_color_selection_get_current_color): Add a check for color != NULL. (gtk_color_selection_set_previous_color): Constify and add a check for color != NULL. (gtk_color_selection_get_previous_color): Add a check for color != NULL. * gtk/gtkctree.c (gtk_ctree_node_set_foreground): Constify. (gtk_ctree_node_set_background): Constify. * gtk/gtktext.c (gtk_text_insert): Constify. (insert_text_property): Constify. (text_properties_equal): Constify. (new_text_property): Constify. * gtk/gtkwidget.c (gtk_widget_modify_color_component): Constify. (gtk_widget_modify_fg): Constify. (gtk_widget_modify_bg): Constify. (gtk_widget_modify_text): Constify. (gtk_widget_modify_base): Constify.
* Changes to allow "no input" windows (#64613):Matthias Clasen2003-12-101-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Dec 11 00:35:12 2003 Matthias Clasen <maclas@gmx.de> Changes to allow "no input" windows (#64613): * gdk/gdkwindow.h (struct _GdkWindowObject): Add a new boolean field accept_focus. * gdk/gdkwindow.h (gdk_window_set_accept_focus): New function to set it. * gtk/gtkwindow.[hc]: Add a boolean property "accept_focus" and gtk_window_get_focus() and gtk_window_set_focus(). * gdk/win32/gdkwindow-win32.c (gdk_window_new): * gdk/linux-fb/gdkwindow-fb.c (gdk_window_new): * gdk/x11/gdkwindow-x11.c (gdk_window_set_new): Initialize the accept_focus field to TRUE. * gdk/win32/gdkwindow-win32.c (gdk_window_set_accept_focus): * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_accept_focus): * gdk/x11/gdkwindow-x11.c (gdk_window_set_accept_focus): Implementations for the various backends. The Win32 and linux-fb implementations set the accept_focus field, but don't use it yet to actually implement noinput windows. The X implementation updates the WM_HINTS to select the globally active input model (see the ICCCM) if accept_focus is FALSE. * gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter): Ignore the WM_TAKE_FOCUS message if accept_focus is FALSE.
* Improve the GDK API for dealing with group leaders (#119375):Matthias Clasen2003-12-091-0/+1
| | | | | | | | | | | | | | | | | | | | Wed Dec 10 00:06:24 2003 Matthias Clasen <maclas@gmx.de> Improve the GDK API for dealing with group leaders (#119375): * gdk/gdkwindow.h: * gdk/x11/gdkwindow-x11.c (gdk_window_get_group): New function to get the group leader of a toplevel window as a GdkWindow. * gdk/gdkdisplay.h: * gdk/x11/gdkdisplay-x11.c (gdk_display_get_default_group): New function to get the default group leader as a GdkWindow. * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a field for the GdkWindow of the default group leader. * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Construct the GdkWindow for the default group leader.
* Add support for EWMH "Above" and "Below" window states. (105100, Manuel Clos)Matthias Clasen2003-08-101-0/+4
|
* add -DGDK_DISABLE_DEPRECATEDManish Singh2002-11-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun Nov 17 13:45:08 2002 Manish Singh <yosh@gimp.org> * gdk/Makefile.am: add -DGDK_DISABLE_DEPRECATED * gdk/gdk.c (gdk_exit): remove obsolete comment * gdk/gdk.h: declare gdk_input_add_full if GTK_COMPILATION for gtk_input_add_full * gdk/gdkcolor.c (gdk_color_white, gdk_color_black): use gdk_colormap_alloc_color instead of gdk_color_alloc * gdk/gdkcolor.h: declare gdk_colormap_change if GDK_COMPILATION for gdk_colors_store. Also, gdk_colors_{alloc,free} for gdk_rgb_try_colormap * gdk/gdkdrawable.h: declare gdk_draw_string if GTK_COMPILATION for gtk_default_draw_string. Also, gdk_draw_text and gdk_draw_text_wc if GDK_COMPILATION for the respective gdk_window_ and gdk_pixmap_ functions. * gdk/gdkfont.c: #undef GDK_DISABLE_DEPRECATED, completely compat code here * gdk/gdkfont.h: allow the GdkFont structure and a few gdk_font_ functions for compat code in GDK_COMPILATION and GTK_COMPILATION. * gdk/gdkrgb.c (gdk_rgb_cmap_fail, gdk_rgb_try_colormap): use gdk_colormap_free_colors instead of gdk_colors_free. * gdk/gdkrgb.c (gdk_draw_rgb_image_core): no need to set fg/bg for own_gc, unused. * gdk/gdkwindow.h: declare gdk_window_get_deskrelative_origin if GTK_COMPILATION for gtk_handle_box_button_changed. * gdk/x11/Makefile.am: add -DGDK_DISABLE_DEPRECATED, renmae -DINSIDE_GDK_X11 to -DGDK_COMPILATION * gdk/x11/gdkcolor-x11.c: remove duplicate doc string for gdk_colormap_alloc_colors. * gdk/x11/gdkfont-x11.c: #undef GDK_DISABLE_DEPRECATED, completely compat code here * gdk/x11/gdkx.h: use GDK_COMPILATION instead of INSIDE_GDK_X11, allow a few gdk_x11_font_ functions if GDK_COMPILATION for compat code * gtk/Makefile.am: add -DGDK_DISABLE_DEPRECATED * gtk/gtkclist.c * gtk/gtkctree.c * gtk/gtkpixmap.c * gtk/gtkpreview.c * gtk/gtktext.c: #undef GDK_DISABLE_DEPRECATED, deprecated widget * gtk/gtkhandlebox.c (gtk_handle_box_motion): use gdk_window_set_geometry_hints instead of gdk_window_set_hints. * gtk/gtkmain.c (gtk_exit): call exit directly * gtktipsquery.c (gtk_tips_query_real_start_query) * gtk/gtktreeitem.c (gtk_tree_item_add_pixmaps): remove some deprecated GDK usage.
* - Replace GdkPointerHooks with a multihead-safe GdkDisplayPointerHooks,Owen Taylor2002-10-071-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Oct 7 15:10:00 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkdisplay.[ch] gdk/gdkinternals.h gdk/gdkwindow.[ch] gdk/linux-fb/gdkwindow-fb.c gdk/win32/gdkwindow-win32.c gdk/x11/gdkwindow-x11.c: - Replace GdkPointerHooks with a multihead-safe GdkDisplayPointerHooks, leave GdkPointerHooks around for singlehead. - Add gdk_display_get_pointer() to get the pointer location with the screen it is on. * gdk/gdk.def gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch]: Change gdk_screen_get_window_at_pointer() to gdk_display_get_window_at_pointer(). * gtk/gtktreeview.c demos/gtk-demo/changedisplay.c tests/testgtk.c: Use gdk_display_get_window_at_pointer(), not gdk_screen_get_window_at_pointer(). * gtk/gtkcolorsel.c: Fix grabbing color to be multihead safe. * gtk/gtkwidget.c: Allow gtk_widget_push_colormap (NULL). since it is useful for writing code that doesn't know the dcurrent state but needs a clean colormap. * gtk/gtkrc.c: When loading the settings for a particular screen, only reset toplevels on that screen. * gtk/gtkiconfactory.h: Fix #ifdef GTK_MULTIHEAD_SAFE that should have been #ifndef GTK_MULTIHEAD_SAFE.
* Remove a duplicate definition of gdk_set_sm_client_id().Owen Taylor2002-09-301-1/+0
| | | | | | | Mon Sep 30 15:38:53 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkwindow.h: Remove a duplicate definition of gdk_set_sm_client_id().
* fix GtkWindowMnemonic to have a separate typedefHavoc Pennington2002-09-251-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-09-24 Havoc Pennington <hp@redhat.com> * gtk/gtkwindow.c: fix GtkWindowMnemonic to have a separate typedef * gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): monitor FULLSCREEN state * tests/testgtk.c (get_state_controls): add fullscreen/unfullscreen test * gdk/gdkdisplay.c (gdk_display_finalize): fix unused variable * gdk/x11/gdkscreen-x11.c (init_xinerama_support): fix unused variable * gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb): mop up unused variable * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_window_manager_changed): emit window_manager_changed signal * gdk/x11/gdkscreen-x11.h (struct _GdkScreenX11Class): add window_manager_changed signal * gdk/x11/gdkevents-x11.c (gdk_x11_screen_get_window_manager_name): new function * gtk/gtkwindow.c (gtk_window_class_init): add type_hint, skip_taskbar_hint, skip_pager_hint properties (gtk_window_set_skip_taskbar_hint): (gtk_window_get_skip_taskbar_hint): (gtk_window_set_skip_pager_hint): (gtk_window_get_skip_pager_hint): (gtk_window_fullscreen): (gtk_window_unfullscreen): new functions * gdk/gdkevents.h (GdkWindowState): add FULLSCREEN state * gdk/gdkwindow.h (GdkWindowTypeHint): add missing type hint values * gdk/x11/gdkwindow-x11.c (gdk_window_set_skip_taskbar_hint): (gdk_window_set_skip_pager_hint): (gdk_window_fullscreen): (gdk_window_unfullscreen): new functions (set_initial_hints): set fullscreen here if appropriate
* Start of integration of Erwann Chenede's multihead work from theOwen Taylor2002-04-251-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Apr 25 16:51:40 2002 Owen Taylor <otaylor@redhat.com> Start of integration of Erwann Chenede's multihead work from the gtk-multihead branch. * gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch] gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkscreen-x11.[ch] New classes representing a set of screens with attached input devices and a single contiguous area, respectively. * gdk/gdk.[ch] gdk/gdkinternals.h gdk/x11/gdkmain-x11.c: gdk/x11/gdkprivate-x11.h: Make the initialization interface simple _gdk_windowing_init() and do the rest in gdk_open_display() calls. * gdk/gdk.[ch]: Add gdk_parse_args() which can be used to do the display-independent part of initialization instead of gdk_init_[check]. * gdk/gdkcursor.h gdk/gdkfont.h gdk/gdkkeys.h gdk/gdkpixmap.h gdk/gdkproperty.h gdk/gdkselection.h gdk/gdkwindow.h: Add multihead variants (_for_display(), for_screen()) of functions getting information specific to a particular screen screen or display. * gdk/gdkscreen.[ch]: Add gdk_screen__* variants of functions like gdk_rgb_get_colormap() that used to get/list global objects. * gdk/x11/gdkx.h: Add functions for converting GdkScreen and GdkDisplay into the X equivalents. * gdk/x11/gdkwindow-x11.c: Removed gdk_window_xid_at_coords() not in the headers and unused. * configure.in gdk/x11/{gxid.c,gxid_lib.[ch],gdkinput-gxi.c}: Remove gxid support ... has not been tested for a long time... "xfree" support is more portable to non XFree86. * gdk/**.h: Add a GDK_MULTIHEAD_SAFE define that can be used to turn off functions that are inherently non-multihead safe. * gdk/**.c: add GDK_NOTE(multihead, ...) calls when functions are used in non-multihead-safe ways. * gdk/*.c gdk/x11/*.c: Changes to make the internals of GDK multihead safe.
* ed Feb 27 19:16:50 2002 Owen Taylor <otaylor@redhat.com>Owen Taylor2002-02-281-0/+2
| | | | | | | | | | | | | | | * gdk/x11/gdkwindow-x11.c (gdk_window_new): * gdk/x11/gdkwindow-x11.c (gdk_window_get_events): * gdk/x11/gdkwindow-x11.c (gdk_window_set_events): * gdk/win32/gdkwindow-win32.c (gdk_window_set_events): * gdk/win32/gdkwindow-win32.c (gdk_window_new): * gdk/gdkwindow.h (struct _GdkWindowObject): * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_events): Save the window's event mask in window->event_mask. * gdk/gdkwindow.c (gdk_window_process_updates_internal): Only generate expose events if GDK_EXPOSE_MASK is included window->event_mask. (#54506)
* fix signature to match implementationjacob berkman2002-02-111-1/+1
| | | | | | | 2002-02-11 jacob berkman <jacob@ximian.com> * gdk/gdkwindow.h (gdk_get_default_root_window): fix signature to match implementation
* Do not #include <gdk/gdkwindow.h>.Federico Mena Quintero2002-02-051-1/+0
| | | | | | 2002-02-05 Federico Mena Quintero <federico@ximian.com> * gdk/gdkwindow.h: Do not #include <gdk/gdkwindow.h>.
* Fix docs. (#66383)Matthias Clasen2001-12-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gtk/gtklabel.c: Fix docs. (#66383) * gtk/gtkbbox.c (gtk_button_box_set_child_secondary): Fix docs. (#66278, #66280) * gdk/gdkwindow.h (gdk_window_get_deskrelative_origin), gdk/gdkimage.h (gdk_image_get): Deprecate. (#66208) * gtk/gtkcolorsel.c (gtk_color_selection_set_update_policy): Don't emit a g_warning() about being deprecated. (#66208) * gtk/gtkaccellabel.c (gtk_accel_label_set_accel_widget): Add docs. * gtk/gtkcontainer.c: Doc fixes. * gtk/gtkliststore.c (gtk_list_store_clear): Add docs; misc doc fixes. * gtk/gtkstyle.c (gtk_style_attach): Add docs. * gdk-pixbuf.h (gdk_pixbuf_ref, gdk_pixbuf_unref, gdk_pixbuf_animation_ref, gdk_pixbuf_animation_unref): Deprecate. (#66208) * gtk/tmpl/gtklabel.sgml: Remove redundant docs. (#66383) * gtk/tree_widget.sgml: Typo fix. (#66256) * gdk-pixbuf/Makefile.am (SCAN_OPTIONS): Add --deprecated-guards. * gtk/tmpl/gtktext.sgml, gtk/tmpl/gtktree.sgml, gtk/tmpl/gtktreeitem.sgml: Updates.
* Version 1.3.11, interface, binary age 0.Owen Taylor2001-11-211-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Nov 21 15:21:26 2001 Owen Taylor <otaylor@redhat.com> * configure.in (GTK_MICRO_VERSION): Version 1.3.11, interface, binary age 0. * NEWS: Updates * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML fixes in docs. * gtk/gtkmain.h: Remove unused and misnamespaced get_gtk_win32_directory() prototype. * gdk/gdkimage.c (gdk_image_get): Fix parameter names to match header. * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(), gdk_window_set_transient_for(), gdk_window_set_geometry_hints(), to match docs. * gdk/gdkevents.c (gdk_event_get_coords) gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active) gtk/gtkdnd.c (gtk_drag_set_icon_stock): Fix parameter names in docs. * docs/faq/Makefile.am (FAQ_FILES): Add missing files. (#64961, Akira Tagoh)
* Include glib-object.h instead of gobject/gsignal.hOwen Taylor2001-11-181-1/+6
| | | | | | | | | | | | | | | Sat Nov 17 21:07:46 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkenums.h: Include glib-object.h instead of gobject/gsignal.h * gdk/{gdkinternals.h,gdkwindow.c,gdkwindow.[ch], x11,{fb,win32,x11/gdkwindow-*.c}: Add a dummy GdkScreen argument to the window_at_pointer() field of GdkPointerHooks. (Patch from Erwann Chenede) * gdk/gdkdrawable.h (struct _GdkDrawableClass ): Up to 6 pointers.
* Add a function gdk_window_invalidate_maybe_recurse() for use in "shallowOwen Taylor2001-11-041-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun Nov 4 16:02:08 2001 Owen Taylor <otaylor@redhat.com> * gdk/gdkwindow.[ch]: Add a function gdk_window_invalidate_maybe_recurse() for use in "shallow invalidation" of a widget. (Windows belonging to the widget, but not to the widget's children) * gtk/gtkprivate.h gtk/gtkwidget.c gtk/gtksizegroup.c: Add private flags GTK_ALLOC_NEEDED, GTK_REQUEST_NEEDED. These flags are set up on ancestors up to the resize container on queue_resize. Size requests only actually take place if GTK_REQUEST_NEEDED, size allocations only take place if GTK_ALLOC_NEEDED or the size changed. * gtk/gtkcontainer.c gtk/gtkwidget.c: Remove container->resize_widgets and the RESIZE_NEEDED flag since the above flags are sufficient to figure out what needs to be resized/reallocated. Remove code manipulating container->resize_widget. * gtk/gtkwidget.[ch]: Add gtk_widget_set_redraw_on_alloc(); this allows widgets to turn off being automatically invalidated is when they are resized. * gtk/gtkwidget.[ch] (gtk_widget_size_allocate): Invalidation when a widget is resized or moved is "shallow" as described above - only the windows that need to be invalidated are invalidated. * gtk/gtkbox.c gtk/gtktable.c gtk/gtkalignment.c docs/Changes-2.0.txt: Make these widget's init functions call gtk_widget_set_redraw_on_allocate(widget,FALSE). * gtk/gtkwindow.c (gtk_window_configure_event): Call _gtk_container_queue_resize(), since we don't want redrawing. (Probably could be done for other calls to gtk_widget_queue_resize() in gtkwindow.c, but this is the most important one.) * gtk/gtkwindow.c (gtk_window_move_resize): Don't call gtk_widget_queue_draw() - size_allocate() handles that as appropriate. * gtk/gtkframe.c (gtk_frame_size_allocate): Invalidate instead of queue_clear() to avoid invalidating children.
* Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup andMatthias Clasen2001-10-181-0/+5
| | | | | | | | | | | | * gdk/gdkwindow.h, gdk/gdkpixmap.h, gdk/x11/gdkx.h, gdk/x11/gdkwindow-x11.c, gdk/x11/gdkpixmap-x11.c, gdk/win32/gdkwin32.h, gdk/win32/gdkwindow-win32.c, gdk/win32/gdkpixmap-win32.c, gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkwindow-fb.c, gdk/linux-fb/gdkpixmap-fb.c: Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup and gkd_pixmap_foreign_new to the gdk frontend api. (#62063) * gtk/gtkselection.c: Remove gdk backend dependencies. (#62063)
* forgot to save before previous commit; this adds the deprecationHavoc Pennington2001-10-031-0/+2
| | | | of gdk_window_set_hints().
* Make gdkx.h the only installed header from gdk/x11. All structures inOwen Taylor2001-09-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fri Sep 7 11:51:44 2001 Owen Taylor <otaylor@redhat.com> Make gdkx.h the only installed header from gdk/x11. All structures in gdk/x11 are opaque. * gdk/x11/Makefile.am gdk/x11/gdkx.h gdk/x11/gdkprivate-x11.h: Don't install gdk{drawable,pixmap,window}-x11.h. * gdk/x11/{gdkcolormap-x11.c, gdkfont-x11.c, gdkx.h, gdkvisual-x11.c: Move GdkColormapPrivateX11, GdkFontPrivateX GdkImagePrivateX11, GdkVisualClass into C files. * gdk/gdkpixmap-x11.[ch]: Make gdk_pixmap_impl_get_type() static. * gdk/x11/{gdkcolor-x11.c, gdkcursor-x11.c, gdkdrawable-x11.c, gdkfont-x11.c, gdkgc-x11.c, gdkx.h, gdkimage-x11,gdkvisual-x11.c} Add public functions to replace previously exported direct structure access. gdk_x11_colormap_get_{xdisplay,xcolormap} gdk_x11_cursor_get_{xdisplay,xcursor}, gdk_x11_drawable_get_{xdisplay,xcursor,gdk_x11_visual_get_xvisual, gdk_x11_font_get_{xdisplay,xfont}, gdk_x11_image_get_{xdisplay,ximage}, gdk_x11_gc_get_{xdisplay,ximage} * gdk/gdkprivate.h gdk/gdkinternals.h: Move GdkColorInfo, GdkEventFilter, GdkClientFilter, GdkFontPrivate to gdkinternals. Fix a number of variables and functions that were exported "accidentally" from GDK. * gdk/**.[ch]: gdk => _gdk for gdk_visual_init, gdk_events_init, gdk_input_init, gdk_dnd_init, gdk_image_exit, gdk_input_exit, gdk_windowing_exit, gdk_event_func, gdk_event_data, gdk_event_notify, gdk_queued_events, gdk_queued_tail, gdk_event_new, gdk_events_queue, gdk_events_unqueue, gdk_event_queue_find_first, gdk_event_queue_remove_link, gdk_event_queue_append, gdk_event_button_generate, gdk_debug_flags, gdk_default_filters, gdk_parent_root. * gdk/x11/{gdkevents-x11.c, gdkglobals-x11.c, gdkimage-x11.c, gdkmain-x11.c, gdkprivate-x11.h, gdk/x11/gdkwindow-x11.c}: gdk => _gdk for gdk_event_mask_table, gkd_nevent_masks, gdk_wm_window_protocols, gdk_leader_window, gdk_xgrab_window, gdk_use_xshm, gdk_input_ignore_core. * gdk/x11/xsettings-common.h (xsettings_list_insert): Add #defines to namespace functions into the private _gdk_ namespace. * gdk/gdkwindow.[ch] gdk/x11/gdkx.h: Add gdk_get_default_root_window () to replace gdk_parent_root exported variable. Adjust and deprecate GDK_ROOT_PARENT(). * demos/{testpixbuf-drawable.c,testpixbuf-save.c}: Fix GDK_ROOT_PARENT usage, remove includes of port-specific headers. * gdk/{win32,x11,fb}/gdkinput*.[ch]: s/gdk/_gdk/ for _gdk_input_gxid_host, _gdk_input_gxid_port, _gdk_input_ignore_core, gdk_input_devices, _gdk_input_windows, gdk_init_input_core. * gdk/x11/{gdkevents-x11.,c gdkglobals-x11.c, gdkmain-x11.c} docs/Changes-2.0.txt: Remove gdk_wm_protocols, gdk_wm_delete_window functions, gdk_wm_take_focus, use gdk_atom_intern() instead. * gdk/linux-fb/{gdkselection-fb.c, gdkmain-fb.c, gdkprivatefb.h} gdk/win32/{gdkselection-win32.c, gdkmgdkwin32.h, gdkprivate-win32.h} gdk/x11/{gdkselection-x11.c gdkx.h, gtkprivate-x11.h} gtk/gtkselection.c Unexport gdk_selection_property, just use gdk_atom_intern ("GDK_SELECTION"). * gdk/x11/{gdkprivate-x11.h,gdkdrawable-x11h,gdkgc-x11.c,gdkx.h}: Unexport gdk_drawable_impl_x11_get_type, gdk_gc_x11_get_type, GDK_GC_X11 cast macros, GdkGCX11 structures, GdkCursorPrivate, GdkVisualprivate, gdk_x11_gc_flush. Make a number of public exports of variables into functions to increase encapsulation. * gdk/gdkinternals.h gdk/gdkinput.h gdk/gdkevents.h gdk/linux-fb/gdkmouse-fb.c: gdk_core_pointer => _gdk_core_pointer, move to gdkinternals.h. Add gdk_device_get_core_pointer (). * gdk/gdkprivate.h gdk/gdkpango.c gdk/gdkinternals.h docs/Changes-2.0.txt: Unexport gdk_parent_root, gdk_error_code, gdk_error_warnings. * gdk/x11/{gdkcolormap-x11.c, gdkmain-x11.c, gdkx.h} docs/Changes-2.0.txt: s/gdk_screen/_gdk_screen/, add gdk_x11_get_default_screen() s/gdk_root_window/_gdk_root_window/, add gdk_x11_get_default_root_xwindow() Add gdk_x11_get_default_xdisplay(). * gdk/gdk.h gdk/gdk.c linux-fb/gdkfb.h linux-fb/gdkglobals-fb.c win32/gdkwin32.h x11/gdkglobals-x11.c gdk/x11/gdkmain-x11.c gdk/x11/gdkx.h: gdk/gdk.def: Add gdk_get/set_program_class, Don't export gdk_progclass, move --class command line option and handling to common portion of GDK. Miscellaneous fixes: * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): Fix g_return_val_if_fail that should have been g_return_if_fail. * gdk/gdkinternals.h gdk/gdkprivate.h: Move gdk_synthesize_window_state() to the semi-public gdkprivate.h. * gtk/gtkdnd.c (_gtk_drag_source_handle_event): Remove uneeded X11 dependency. * gdk/linux-fb/gdkmain-fb.c gdk/win32/gdkmain-win32.c gdk/TODO: Remove unused gdk_key_repeat_disable/restore. * linux-fb/gdkglobals-fb.c win32/gdkglobals-win32.c x11/gdkglobals-x11.c x11/gdkprivate-x11.h gdk/gdk.def: Remove unused gdk_null_window_warnings variable. * gdk/Makefile.am (DIST_SUBDIRS) nanox/*: cvs remove nanox; it can be retrieved from the repository; it is too far from functional to be worth having people check out; it would be easier to start from scratch, I suspect. * gdk/x11/gdkpixmap-x11.c: Fix lvalue usage of GDK_PIXMAP_XID(). * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: Fix some accidentally global variables and unused global variables. * gdk/x11/gdkkeys-x11.c gdk/gdkrgb.c gdk/gdkwindow.c gdk/x11/gdkpango-x11.c gdk/x11/gdkselection-x11.c: Fix some accidentally global variables and unused global variables. Add some space for future expansion to multihead. * gdk/gdkdrawable.h: Add four reserved function pointers for future expansion of GdkDrawableClass. * gtk/gtkwindow.h gtk/gtkinvisible.h: Add reserved pointer where we can put a GdkScreen * later.
* add default iconHavoc Pennington2001-08-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-28 Havoc Pennington <hp@pobox.com> * demos/gtk-demo/main.c (setup_default_icon): add default icon * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): warning fix (gtk_radio_button_new_with_label): warning fix * gtk/gtkdnd.c: used some random GtkImage private structs, update to reflect GtkImage changes * gdk/x11/gdkwindow-x11.c (gdk_window_set_icon_list): don't check whether the hint is supported, just always set the icon. A task list might want to use it even if the WM doesn't, and the WM may change over time. Also, XDeleteProperty() if list == NULL. * gtk/gtkwindow.c (gtk_window_set_icon_list) (gtk_window_get_icon_list) (gtk_window_set_icon) (gtk_window_get_icon) (gtk_window_set_default_icon_list) (gtk_window_get_default_icon_list): new functions * gtk/gtk-boxed.defs (GtkIconSet): add GtkIconSet * gtk/gtkimage.c: Implement property support, bug #59408 * gtk/gtkcontainer.c (gtk_container_add): make the warning message on reparent-without-removing-first a bit more helpful. Let's just destroy this FAQ.
* [ Patch from Sebastian Wilhelmi, 52790 ]Owen Taylor2001-08-231-0/+14
| | | | | | | | | | | | | | | | | | | | | Wed Aug 22 19:15:39 2001 Owen Taylor <otaylor@redhat.com> [ Patch from Sebastian Wilhelmi, 52790 ] * gtk/gtkversion.h.in gtk/gtk.h: New file replacing gtkcompat.h * gdk/gdkcompat.h gdk/gdk*.h gtk/gtkcompat.h.in gtk/gtk*.h: Move compatibility macros from g[dt]kcompat.h to within #ifndef G[DT]K_DISABLE_DEPRECATED in each file. * gdk/gdk-pixbuf-csource.c: Fix up include of gtkcompat.h. * demos/Makefile.am demos/gtk-demo/Makefile.am docs/reference/gdk-pixbuf/Makefile.am modules/input/Makefile.am tests/Makefile.am: Remove references to -G[DT]K_DISABLE_DEPRECATED. * demos/{pixbuf-demo.c,testpixbuf-drawable.c,testpixbuf-save.c, testpixbuf.c}: Fix usages of deprecated functions.
* fix a typo.Havoc Pennington2001-08-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-07 Havoc Pennington <hp@pobox.com> * gtk/gtkfilesel.c (open_ref_dir): fix a typo. * gtk/gtkplug.c (gtk_plug_init): remove setting of auto_shrink; some fixage is needed here, but nothing simple. Owen understands it. ;-) * gtk/gtkwindow.h, gtk/gtkwindow.c: Rework code and API for window sizing and positioning. Also, fix bug in compute_geometry_hints (width/height confusion for setting min size). (gtk_window_move): new function (gtk_window_resize): new function (gtk_window_get_size): new function (gtk_window_get_position): new function (gtk_window_parse_geometry): new function * gtk/gtkwidget.c (gtk_widget_set_size_request): new function (gtk_widget_get_size_request): new function (gtk_widget_get_usize): delete, that was a short-lived function ;-) (gtk_widget_set_usize): deprecate (gtk_widget_set_uposition): deprecate, make it a trivial gtk_window_move() wrapper (gtk_widget_class_init): remove x/y/width/height properties, add width_request height_request * demos/*: update to avoid deprecated functions * gtk/gtklayout.c: add x/y child properties * gtk/gtkfixed.c: add x/y child properties, and get rid of uses of "gint16" * tests/testgtk.c (create_window_sizing): lots of tweaks to window sizing test * gdk/x11/gdkevents-x11.c (gdk_event_translate): Ensure that configure events on toplevel windows are always in root window coordinates, following ICCCM spec that all synthetic events are in root window coords already, while real events are in parent window coords. Previously the code assumed that coords of 0,0 were parent window coords, which was really broken. * gtk/gtkcontainer.c (gtk_container_get_focus_chain): fix warning * gdk/gdkwindow.h (GdkWindowHints): add GDK_HINT_USER_POS and GDK_HINT_USER_SIZE so we can set USSize and USPosition hints in gtk_window_parse_geometry() * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): support new USER_POS USER_SIZE hints
* Add a function gdk_window_get_internal_paint_info(), so that using XOwen Taylor2001-07-181-0/+5
| | | | | | | | | | | | Fri Jul 13 15:33:32 2001 Owen Taylor <otaylor@redhat.com> * gdk/gdkwindow.[ch]: Add a function gdk_window_get_internal_paint_info(), so that using X functions on a GdkWindow is possible, if a little hairy. * gdk/gdkgc.c (gdk_gc_offset): Add a function to offset the clip and ts_origin of a GC, so that external parties can offset/restore a GC, when using gdk_window_get_internal_paint_info().
* Add gdk_set_pointer_hooks() to allow pointer-querying to be hooked by anOwen Taylor2001-07-051-0/+13
| | | | | | | | | | Mon Jul 2 01:09:37 2001 Owen Taylor <otaylor@redhat.com> * gdk/gdkwindow.[ch] gdk/gdkinternals.h gdk/x11/gdkwindow-x11.c gdk/linux-fb/gdkwindow-fb.c gdk/x11/gdkwindow-x11.c gdk/gdk: Add gdk_set_pointer_hooks() to allow pointer-querying to be hooked by an event record/playback system like GERD. (#56914)
* new function for mapping a window without fooling with stacking order, butHavoc Pennington2001-06-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | 2001-06-19 Havoc Pennington <hp@pobox.com> * gdk/x11/gdkwindow-x11.c (gdk_window_show_unraised): new function for mapping a window without fooling with stacking order, but updating the "withdrawn" flag * gdk/x11/gdkevents-x11.c (gdk_event_translate): Do event filtering as soon as possible, moving move resize and wmspec_check handling after the event filter. Make default filter apply to all events, not just those with no GdkWindow wrapped around the X window. Fix a FIXME about how the window could be a pixmap using RTTI; this of course assumes GDK_IS_WINDOW() is optimized. Also, be robust against events not on a known GdkWindow. * gdk/x11/gdkmain-x11.c (gdk_x11_grab_server, gdk_x11_ungrab_server): export reference-counted server grabs, so other people can grab server over a GDK function that also does so.
* Add a GtkWindowGroup struct that allows grouping together multiple windowsOwen Taylor2001-06-141-2/+0
| | | | | | | | | | | | | | | | Fri Jun 8 17:56:52 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwindow.[ch] gtk/gtkmain.c: Add a GtkWindowGroup struct that allows grouping together multiple windows so that grabs within that set of windows only affect those windows. * gtk/gtkmain.c gtk/gtkwidget.[ch]: Add a "grab_notify" signal for notification when a widget becomes shadowed by a grab or is no longer shadowed by a grab. * gtk/gtkwidget.c (gtk_widget_propagate_state) gtk/gtkmain.c: (gtk_widget_grab_add): Don't allow insenstive widgets to maintain a grab.
* Try changing mode on shm segments to 0600. We'll see who complains.Owen Taylor2001-04-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Apr 18 14:23:14 2001 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkimage-x11.c (gdk_image_new): Try changing mode on shm segments to 0600. We'll see who complains. * gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): Call _gdk_windowing_window_destroy() AFTER recursing through children. * tests/Makefile.am (noinst_PROGRAMS): Build testsocket, testsocket_child on X. * tests/testsocket[_child].c: Fix uses of gtk_window_get_default_accel_group(). [ Merge patch from Ramiro Estrugo <ramiro@eazel.com> from gtk-1-2 ] * gdk/gdkimage.c: (gdk_image_get): Deal with the possibility that XGetImage() might return NULL. Allocate the GdkImagePrivate structure only after XGetImage() succeeds in order not to dereference a NULL ximage pointer. This prevents a core dump when XGetImage() fails - which is unlikely, but can happen due to race conditions accessing the geometries of drawables. An x error will still be triggered, but the gdk image wrapper at least wont seg fault.
* sorry, I only wanted to commit .cvsignoreSven Neumann2001-04-031-5/+1
| | | | I'm stupid and perhaps a bit tired ...
* shut up CVSSven Neumann2001-04-031-1/+5
|
* Add private function to get the aux info structure fo the widget.Owen Taylor2001-03-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Mar 28 20:30:26 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.[ch] (_gtk_widget_get_aux_info): Add private function to get the aux info structure fo the widget. * gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtkwindow.c: Use above function. [ Patch from Havoc Pennington <hp@redhat.com> ] * gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): function to get the size of the window manager frame, basically the same code that gdk_window_get_root_origin() had (gdk_window_get_root_origin): use gdk_window_get_frame_extents() * gtk/gtkwindow.c (gtk_window_set_default_size): use gdk_window_resize() if the window is realized and resizeable * gdk/x11/gdkwindow-x11.c (gdk_window_set_geometry_hints): fix typo so that setting gravity works * gtk/gtkwindow.c (gtk_window_move_resize): don't ever use allocation if auto_shrink is on, even if the default size has not changed. * gtk/gtkwidget.c (gtk_widget_render_icon): remove bogus g_return_if_fail
* *** empty log message ***Owen Taylor2001-03-291-0/+32
|