1. 21 Dec, 2010 4 commits
    • Matthias Clasen's avatar
      Explode gdkinternals.h into per-class private headers · ea96e5e1
      Matthias Clasen authored
      At the same time, move some more class and instance structs
      out of public headers.
      ea96e5e1
    • Matthias Clasen's avatar
      Work toward turning GdkDisplayManager into a backend singleton · ec9c9775
      Matthias Clasen authored
      This commit hides the GdkDisplayManager instance and class structs,
      adds vfuncs for listing displays, opening displays, and getting and
      setting the default display. The X11 backend has a derived
      GdkDisplayManagerX11.
      
      The gdk_display_manager_get() function is responsible for deciding on
      which of the compiled in backends to use. Currently, it consults the
      GDK_BACKEND environment variable and falls back to x11.
      ec9c9775
    • Matthias Clasen's avatar
      Make GdkAppLaunchContext display-dependent · 06f75b37
      Matthias Clasen authored
      Add a GdkDisplay::get_app_launch_context vfunc, and a
      gdk_display_get_app_launch_context that for X11 returns a subclass.
      For win32 and quartz, the implementations were trivial, so we
      just return a new GdkAppLaunchContext without subclassing. Since
      the type of the context now depends on the display,
      gdk_app_launch_context_set_display is deprecated.
      06f75b37
    • Alexander Larsson's avatar
      Hide GdkDisplayClass from public header · f1c32f10
      Alexander Larsson authored
      There is no need for apps to access this class, as its only implemented
      in the gdk backends, and we want to be free to change it later.
      f1c32f10
  2. 17 Dec, 2010 1 commit
  3. 16 Nov, 2010 1 commit
  4. 15 Nov, 2010 1 commit
  5. 07 Aug, 2010 1 commit
  6. 25 May, 2010 2 commits
  7. 02 May, 2010 1 commit
  8. 29 May, 2009 1 commit
  9. 02 Apr, 2009 6 commits
  10. 28 May, 2008 1 commit
    • Michael Natterer's avatar
      define __GDK_H_INSIDE__ around including all other headers. · 791ac426
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/gdk.h: define __GDK_H_INSIDE__ around including all other
      	headers.
      
      	* gdk/gdkenumtypes.h.template
      	* gdk/gdk*.h: add single-include guards that #error out if
      	GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
      	included individually. Also removed some redundant includes and
      	did some tiny trailing whitespace removal that's not worth to
      	commit separately.
      
      	* gdk/gdkprivate.h: include <gdk/gdk.h> instead of individual
      	files.
      
      	* gdk/win32/gdkwin32.h
      	* gdk/x11/gdkx.h: only include <gdk/gdkprivate.h> and remove all
      	other includes.
      
      
      svn path=/trunk/; revision=20217
      791ac426
  11. 15 Jan, 2008 1 commit
    • Michael Natterer's avatar
      gdk/gdkdisplay.h gdk/gdkdrawable.h gdk/gdkevents.h gdk/gdkpango.h · 8243e3d4
      Michael Natterer authored
      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
      8243e3d4
  12. 01 Jun, 2007 1 commit
    • Matthias Clasen's avatar
      Add support for composited child windows. (#412882, Ryan Lortie) · 885ba046
      Matthias Clasen authored
      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
      885ba046
  13. 20 Feb, 2006 1 commit
    • Matthias Clasen's avatar
      Support input shapes: (#331070) · 1ad93a68
      Matthias Clasen authored
      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.
      1ad93a68
  14. 23 Jan, 2005 1 commit
  15. 18 Jan, 2005 1 commit
    • Matthias Clasen's avatar
      Add pointer warping to GDK. (#160437) · 3f8461b7
      Matthias Clasen authored
      2005-01-18  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/gdkdisplay.h:
      	* gdk/x11/gdkwindow-x11.c (gdk_display_warp_pointer):
      	* gdk/win32/gdkwindow-win32.c (gdk_display_warp_pointer): Add
      	pointer warping to GDK.  (#160437)
      
      	* gtk/gtkcolorsel.c (key_press): Use gdk_display_warp_pointer.
      3f8461b7
  16. 28 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Mark as const. · fdec8714
      Matthias Clasen authored
      2004-11-28  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/gdkvisual.h (gdk_visual_get_type):
      	* gdk/gdkscreen.h (gdk_screen_get_type):
      	* gdk/gdkinput.h (gdk_device_get_type):
      	* gdk/gdk.h (gdk_rectangle_get_type):
      	* gdk/gdkfont.h (gdk_font_get_type):
      	* gdk/gdkevents.h (gdk_event_get_type):
      	* gdk/gdkdrawable.h (gdk_drawable_get_type):
      	* gdk/gdkdisplay.h (gdk_display_get_type):
      	* gdk/gdkcursor.h (gdk_cursor_get_type):
      	* gdk/gdkcolor.h (gdk_color_get_type): Mark as const.
      
      	* gdk/gdk.symbols:
      	* gdk/Makefile.am (stamp-gdkenumtypes.h): Mark get_type() functions
      	generated by glib-mkenums as const.
      fdec8714
  17. 25 Oct, 2004 1 commit
    • Anders Carlsson's avatar
      New API to handle the clipboard manager. · 06c4bb44
      Anders Carlsson authored
      2004-10-25  Anders Carlsson  <andersca@imendio.com>
      
      	* gdk/gdk.symbols:
      	* gdk/gdkdisplay.h:
      	* gdk/x11/gdkdisplay-x11.c:
      	(gdk_display_supports_clipboard_persistence),
      	(gdk_display_store_clipboard):
      	New API to handle the clipboard manager.
      
      	* gtk/gtk.symbols:
      	* gtk/gtkclipboard.c: (gtk_clipboard_class_init),
      	(gtk_clipboard_finalize), (selection_clear_event_cb),
      	(clipboard_unset), (gtk_clipboard_set_text),
      	(gtk_clipboard_request_targets), (gtk_clipboard_wait_for_targets),
      	(clipboard_peek), (gtk_clipboard_owner_change),
      	(gtk_clipboard_wait_is_target_available),
      	(gtk_clipboard_store_timeout), (gtk_clipboard_set_can_store),
      	(gtk_clipboard_selection_notify), (gtk_clipboard_store),
      	(_gtk_clipboard_store_all):
      	* gtk/gtkclipboard.h:
      	Add API for clipboard persistence and implement it, also add
      	gtk_clipboard_wait_is_target_available.
      
      	* gtk/gtkmain.c: (gtk_main):
      	Call _gtk_clipboard_store_all before exiting.
      06c4bb44
  18. 18 May, 2004 1 commit
    • Matthias Clasen's avatar
      Check for XFIXES extension. · 7b8616bf
      Matthias Clasen authored
      2004-05-18  Matthias Clasen  <mclasen@redhat.com>
      
      	* configure.in: Check for XFIXES extension.
      
      	* gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
      	a gboolean have_xfixes member.
      
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_open): Register
      	XFIXES events and set have_xfixes.
      
      	* gdk/gdkevents.h (GdkEventType): Add GDK_OWNER_CHANGE.
      	(GdkEventOwnerChange): New event struct for owner change events.
      	(GdkOwnerChange): New enum for the reason field of GdkEventOwnerChange.
      
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Translate
      	XFixesSelectionNotify events into GdkEventOwnerChange events.
      
      	* gdk/gdkdisplay.h:
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_supports_selection_notification):
      	(gdk_display_request_selection_notification): New api
      	to support selection ownership notification.
      
      	* gtk/gtkclipboard.h:
      	* gtk/gtkclipboard.c (_gtk_clipboard_handle_event): New private
      	api to handle owner change events.
      	(clipboard_peek): Refactored out the body of
      	gtk_clipboard_get_for_display() for use in _gtk_clipboard_handle_event().
      
      	* gtk/gtkmain.c (gtk_main_do_event): Handle GDK_OWNER_CHANGE events
      	by calling _gtk_clipboard_handle_event().
      7b8616bf
  19. 16 Dec, 2003 1 commit
    • Matthias Clasen's avatar
      Do not interpret distant clicks as double-clicks (#116541, Bernhard · fbb0ba1a
      Matthias Clasen authored
      Tue Dec 16 01:46:46 2003  Matthias Clasen  <maclas@gmx.de>
      
      	Do not interpret distant clicks as double-clicks  (#116541,
      	Bernhard Walle):
      
      	* gdk/gdkdisplay.h (struct GdkDisplay): Add new fields
      	double_click_distance, button_x and button_y.
      	* gdk/gdkdisplay.c (gdk_display_init): Initialize the new fields.
      
      	* gdk/gdkdisplay.h:
      	* gdk/gdkevents.c (gdk_display_set_double_click_distance):
      	New function to set the double click distance on a display.
      
      	* gdk/gdkevents.c: Take double click distance into account
      	when generating single, double or triple clicks.
      
      	* gtk/gtksettings.c: Add new setting "gtk-double-click-distance".
      
      	* gdk/x11/gdkevents-x11.c: Add the XSetting
      	"Net/DoubleClickDistance" and map it to "gtk-double-click-distance".
      fbb0ba1a
  20. 09 Dec, 2003 1 commit
    • Matthias Clasen's avatar
      Improve the GDK API for dealing with group leaders (#119375): · 3f6441ea
      Matthias Clasen authored
      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.
      3f6441ea
  21. 05 Jul, 2003 1 commit
    • Owen Taylor's avatar
      Use asynchronously _gdk_x11_set_input_focus_safe to avoid having to trap · 9bedbf66
      Owen Taylor authored
      Fri Jul  4 15:57:52 2003  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkevents-x11.c (gdk_wm_protocols_filter):
      	Use asynchronously _gdk_x11_set_input_focus_safe
      	to avoid having to trap errors and XSync().
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_focus): Use
      	_gdk_x11_set_input_focus_safe() here as well.
      
      	* gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed):
      	Rework handling of property notifies on _NET_WM_STATE
      	so that we ignore _NET_WM_DESKTOP notifies unless we
      	really care.
      
      	* gdk/x11/gdkimage-x11.c (gdk_image_check_xshm): Use
      	XShmQueryExtension() rather than XQueryExtension() to
      	avoid extra rountrip.
      
      	* gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
      	Remove unused call to XGetWindowAttributes()
      
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_open): Remove
      	unused call to XGetKeyboardControl().
      
      	* gdk/x11/gdkdisplay-x11.c gdk/gdk.def (gdk_display_flush):
      	Add (#99571)
      
      	* gdk/win32/gdkevents-win32.c gdk/linux-fb/gdkevents-fb.c
      	No-op implementations of gdk_display_flush().
      
      	* gdk/gdkwindow.c (gdk_window_process_all_updates): Use
      	gdk_display_flush() rather than gdk_flush() to avoid
      	XSync().
      
      	* gdk/x11/gdkwindow-x11.c (update_wm_hints)
      	gdk/x11/gdkwindow-x11.h: Centralize all handling of WM_HINTS here
      	so that we don't have to get the property back from the server.
      
      	* gdk/x11/gdkwindow-x11.c (show_window_internal): Store
      	the serial of when we map a toplevel to allow optimizing
      	out notifies on _NET_WM_STATE/_NET_WM_DESKTOP.
      
      	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Don't
      	XTranslateCoordinates() for override-redirect windows.
      
      Fri Jul  4 15:59:27 2003  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_group): Remove comment
      	about setting window group after the window is mapped from docs
      	- nothing the ICCCM forbids that.
      
      	* gdk/x11/gdkcursor-x11.c (gdk_display_get_maximal_cursor_size):
      	Fix g_return_val_if_fail() in void return function.
      
      	* configure.in: Fix misplaced comma that was resulting
      	in XShm always being disabled.
      9bedbf66
  22. 30 Jun, 2003 1 commit
    • Matthias Clasen's avatar
      Check for Xcursor. · eb7135ad
      Matthias Clasen authored
      2003-07-01  Matthias Clasen  <maclas@gmx.de>
      
      	* configure.in: Check for Xcursor.
      
      	* gdk/x11/gdkcursor-x11.c:
      	* gdk/gdkdisplay.h:
      	* gdk/gdkcursor.h: RGBA cursor support based on Xcursor. New functions:
      	gdk_cursor_new_from_pixbuf(), gdk_display_supports_cursor_alpha(),
      	gdk_display_supports_cursor_color(), gdk_display_get_default_cursor_size() and
      	gdk_display_get_maximal_cursor_size().  (#69436)
      eb7135ad
  23. 08 Nov, 2002 1 commit
    • Soeren Sandmann's avatar
      docs/reference/gdk/tmpl/dnd.sgml docs/reference/gdk/tmpl/drawing.sgml · b1165617
      Soeren Sandmann authored
      Fri Nov  8 20:14:52 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* docs/reference/gdk/tmpl/dnd.sgml
      	docs/reference/gdk/tmpl/drawing.sgml
      	docs/reference/gdk/tmpl/gdk-unused.sgml
      	docs/reference/gdk/tmpl/gdkdisplay.sgml
      	docs/reference/gdk/tmpl/general.sgml
      	docs/reference/gdk/tmpl/input_devices.sgml
      	docs/reference/gdk/tmpl/selections.sgml
      	docs/reference/gtk/tmpl/gtkcellrenderer.sgml
      	docs/reference/gtk/tmpl/gtkcurve.sgml
      	docs/reference/gtk/tmpl/gtkdnd.sgml
      	docs/reference/gtk/tmpl/gtkitemfactory.sgml
      	docs/reference/gtk/tmpl/gtkmenu.sgml
      	docs/reference/gtk/tmpl/gtkoldeditable.sgml
      	docs/reference/gtk/tmpl/gtkoptionmenu.sgml
      	docs/reference/gtk/tmpl/gtkpreview.sgml
      	docs/reference/gtk/tmpl/gtkselection.sgml
      	docs/reference/gtk/tmpl/gtksocket.sgml
      	docs/reference/gtk/tmpl/gtkstyle.sgml
      	docs/reference/gtk/tmpl/gtktextbuffer.sgml
      	docs/reference/gtk/tmpl/gtktreemodel.sgml
      	docs/reference/gtk/tmpl/gtkwidget.sgml gdk/gdk.h gdk/gdkdisplay.c
      	gdk/gdkdisplay.h gdk/gdkdnd.h gdk/gdkdraw.c gdk/gdkdrawable.h
      	gdk/gdkinput.h gdk/gdkselection.h gdk/x11/gdkdisplay-x11.c
      	gdk/x11/gdkdnd-x11.c gdk/x11/gdkselection-x11.c gtk/gtkcurve.h
      	gtk/gtkdnd.h gtk/gtkitemfactory.c gtk/gtkitemfactory.h
      	gtk/gtkmenu.h gtk/gtkoldeditable.c gtk/gtkoldeditable.h
      	gtk/gtkoptionmenu.h gtk/gtkplug.c gtk/gtkplug.h gtk/gtkpreview.h
      	gtk/gtkrange.h gtk/gtkselection.c gtk/gtkselection.h
      	gtk/gtksocket.c gtk/gtksocket.h gtk/gtkstyle.c gtk/gtkstyle.h
      	gtk/gtktextlayout.c gtk/gtktextlayout.h gtk/gtktreemodel.c
      	gtk/gtktreemodel.h gtk/gtkwidget.h
      
      	Trivial s/foo/foo_/ fixes to make gtk.h includable with -Wshadow
      	without warnings. (#91680)
      b1165617
  24. 31 Oct, 2002 1 commit
    • Owen Taylor's avatar
      Add a --screen option for setting the default screen. (Based on a patch · 550bf181
      Owen Taylor authored
      Thu Oct 31 12:40:39 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdk.[ch] gdk/gdkglobals.c gdk/gdkinternals.h
              gdk/{x11,win32,linux-fb}/gdkscreen-{x11,win32,linux-fb}.c:
              Add a --screen option for setting the default screen.
              (Based on a patch from Balamurali Viswanathan, #81145)
      
              * gdk/gdk.c gdkdisplay.h gtk/gtkmain.c: Add
              gdk_display_open_default_libgtk_only(), so gtk_init_check()
              and gdk_init_check() can share the same behavior w.r.t.
              --screen.
      
              * gdk/gdk.[ch]: Make gdk_get_display_arg_name() G_CONST_RETURN.
      
              * gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
              Suppress a spurious warning.
      
              * tests/testgtkrc: Remove someleft-over commented out
              includes that could be confusing.
      550bf181
  25. 07 Oct, 2002 1 commit
    • Owen Taylor's avatar
      - Replace GdkPointerHooks with a multihead-safe GdkDisplayPointerHooks, · 253458ec
      Owen Taylor authored
      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.
      253458ec
  26. 30 Sep, 2002 1 commit
    • Owen Taylor's avatar
      Set the client ID on all displays. (#85713) · 2d385b9b
      Owen Taylor authored
      Mon Sep 30 15:31:57 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdisplay.c gdk/x11/gdkdisplay-x11.c
              gdk/gdkinternals.h: Set the client ID on all
              displays. (#85713)
      
              * gdk/gdkdisplay.h gkd/gdkinternals.h
               gdk/{linux-fb,win32,x11}/gdkmain-{fb,win32,x11}.c
              Privatize gdk_display_set_sm_client_id().
      2d385b9b
  27. 06 Sep, 2002 1 commit
  28. 09 Aug, 2002 1 commit
  29. 05 Aug, 2002 1 commit
    • Owen Taylor's avatar
      More fixes for warnings reported by David L. Cooper II · 1f8ad87b
      Owen Taylor authored
      Mon Aug  5 15:04:59 2002  Owen Taylor  <otaylor@redhat.com>
      
              More fixes for warnings reported by David L. Cooper II
      
              * gtk/gtkaccelmap.c (accel_map_parse_accel_path): Use
              GdkModifierType for accel_mods. (#85856)
      
              * gdk/gdkdisplay.h (struct _GdkDisplay): Make button_number
              signed, since we use -1 as an 'unset' value. (#85854)
      
              * gdk/x11/xsettings-client.c (parse_settings): Suppress
              a warning (#85853)
      
              * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale): Fix
              accidental trailing ';'. (#85846)
      1f8ad87b
  30. 01 Aug, 2002 2 commits
    • Owen Taylor's avatar
      New demo for window migration between different displays and screens. · 63489392
      Owen Taylor authored
      Thu Aug  1 19:09:39 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* demos/gtk-demo/changedisplay.c: New demo for
      	window migration between different displays and screens.
      
      	* gtk/gtkrc.c gtkstyle.[ch]: Add
      	_gtk_style_init_for_settings(), so that gtkrc.c
      	can initialize the styles it creates for the
      	right display.
      
      	* gdk/gdkdisplaymanager.c (gdk_screen_get_default)
      	* gtk/gtksettings.c (gtk_settings_get_default)
      	* gtk/gtkstyle.c (gtk_style_init): Handle absence of
      	a default screen.
      
      	* gdk/x11/gdkmain-x11.c (_gdk_windowing_set_default_display):
      	Handle display == NULL.x
      
      	* gdk/gdkdisplay.c (gdk_display_dispose): Free the
      	event queue.
      
      	* gdk/x11/gdkevents-x11.c gdk/x11/gdkdisplay-x11.c:
      	Remove the event source when closing a display.
      
      	* gdk/gdkdisplay.[ch]: Add a ::closed signal, dispose()
      	isn't convenient enough by itself.
      
      	* gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb):
      	Create foreign windows for watch windows if there isn't
      	an existing window, instead of installing a global filter.
      
      	* gdk/x11/gdkscreen-x11.c gdk/x11/gdkprivate-x11.h
      	gdk/x11/gdkevents-x11.c (_gdk_x11_events_uninit_screen):
      	Clean up the xsettings_client when we are done with
      	it.
      
      	* gdk/x11/gdkevents-x11.c (_gdk_events_init): Remove
      	excess call to _gdk_x11_events_init_screen()
      63489392
    • Owen Taylor's avatar
      Start implementing display/screen closing scheme; keep a flag for whether · e5ae081e
      Owen Taylor authored
      Thu Aug  1 11:26:03 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch] gdkinternals.h:
      	Start implementing display/screen closing scheme; keep a
      	flag for whether displays and screens are closed,
      	call g_object_run_dispose(). Remove public gdk_screen_close().
      
      	* gdk/x11/gdkdisplay-x11.c gdk/x11/gdkscreen-x11.c: Add
      	dispose() methods; move appropriate parts of the finalize
      	there.
      
      	* gdk/x11/gdkcolor-x11.c gdk/x11/gdkimage-x11.c
      	gdk/x11/gdkmain-x11.c gdk/x11/gdkpango-x11.c
      	gdk/x11/gdkpixmap-x11.c gdk/x11/gdkproperty-x11.c
      	gdk/x11/gdkselection-x11.c gdk/x11/gdkwindow-x11.c:
      	Start of making everything correctly ignore operations
      	when a display has been closed.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_get_decorations):
      	Handle decorations == NULL.
      
      	* gdk/x11/gdkcolor-x11.c (gdk_colormap_remove):
      	Remove unnecessary hash table creation.
      
      	* gdk/x11/gdkinput.c gdk/x11/gdkinput-x11.c gdk/win32/gdkinput.c
      	Fix up gdk_device_get_history - handle events, n_events == NULL,
      	etc.
      
      	* gdk/x11/gdkproperty-x11.c (gdk_property_get):
      	Handle failure better.
      
      	* gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
      	Handle failure better, handle data == NULL, move docs
      	here, remove an excess round trip by asking for
      	all selection data at once.
      
      	* gdk/gdkselection.c gdk/win32/{x11,win32}/gdkselection-{x11,win32}.c
      	  gdk/{x11,win32}/gdkmain-{x11,win32}.c	gdk/gdkdisplay.c: Move
      	gdk_text_property_to_text_list(), gdk_string_to_compound_text(),
      	gdk_display_set_sm_client_id() to display-independent part of GDK.
      
      	* gdk/Makefile.am (gdk_c_sources): Sort gdkdisplay/screen.[ch]
      	into the right place.
      e5ae081e