1. 25 May, 2006 1 commit
  2. 20 Feb, 2006 1 commit
  3. 30 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Handle broken grabs. · 87cafe5b
      Matthias Clasen authored
      2005-06-29  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkbutton.c (gtk_button_grab_broken): Handle broken
              grabs.
      
              * gtk/gtkrange.c (gtk_range_grab_broken): Handle broken
              grabs.
      
              * gdk/gdkevents.h: Add a boolean to specify wether the broken
              grab was implicit.
      
              * gdk/x11/gdkdisplay-x11.c (gdk_display_pointer_is_grabbed):
              As the documentation states, don't return TRUE for
              implicit grabs.
      
              * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
              a boolean field to store wether a pointer grab is implicit.
      
              * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_button_event):
              Track implicit grabs.
      
              * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
              _gdk_xgrab_check_button_event for button events.
      87cafe5b
  4. 27 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Avoid a segfault. (#309054) · c719b4bf
      Matthias Clasen authored
      2005-06-27  Matthias Clasen  <mclasen@redhat.com>
      
      	* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
      	Avoid a segfault. (#309054)
      
      	* gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
      	fields for grab timestamps.
      
      	* gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
      	Store grab timestamps when grabbing.
      
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard_ungrab)
      	(gdk_display_pointer_ungrab): Don't unset the grab_window
      	if the timestamps indicate that the ungrab will fails.
      c719b4bf
  5. 17 Mar, 2005 1 commit
    • Owen Taylor's avatar
      Switch set_cairo_target() virtual function to ref_cairo_surface() · 09d7eafb
      Owen Taylor authored
      2005-03-15  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c
      	gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c
      	gdk/gdkinternals.h: Switch set_cairo_target() virtual function to
      	ref_cairo_surface()
      
      	* gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual
      	function to create_cairo_context()
      
      	* gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo.
      
      	* gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color,
      	not just the pixel.
      
      	* tests/testcairo.c: Update for create_cairo_context()
      
      	* gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]):
      	Reimplement in terms of Cairo, bypass the vtable entries.
      
      	* gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
      	gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c
      	gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove
      	implementation of draw_trapezoids / draw_glyphs[_transformed].
      
      	* gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo
      
      	* gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move
      	gdk_pango_context_get_for_screen() into the backend independent code.
      
      	* gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly
      	for drawing images.
      
      	* gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove
      	gdk_draw_rectangle_alpha_libgtk_only.
      
      	* gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add
      	gdk_pixbuf_set_as_cairo_source()
      
      	* gdk/gdk.symbols: Update
      
      	* gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch]
      	gtk/gtk[hv]ruler.c: Convert to Cairo rendering.
      
      	* gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus,
      	gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton,
      	radio button style for now to get something more scalable.
      
      	*  gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/
      	antialiasing/dpi settings.
      09d7eafb
  6. 18 Jan, 2005 1 commit
    • Matthias Clasen's avatar
      Avoid X errors when running against servers which implement XRender < 0.4. · 014a347f
      Matthias Clasen authored
      2005-01-18  Matthias Clasen  <mclasen@redhat.com>
      
      	Avoid X errors when running against servers which
      	implement XRender < 0.4.  (#164427, Albert Chin)
      
      	* gdk/x11/gdkprivate-x11.h:
      	* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render_with_trapezoids):
      	New function to check for trapezoid support in XRender.
      	(gdk_x11_draw_trapezoids, _gdk_x11_drawable_draw_xtrapezoids):
      	Use it here.
      
      	* gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add a
      	separate have_render_with_trapezoids field.
      
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_open): Initialize it.
      014a347f
  7. 21 Nov, 2004 1 commit
    • Owen Taylor's avatar
      Add GdkPangoRenderer, a subclass of PangoRenderer targeting GDK drawables. · 3d737ee8
      Owen Taylor authored
      Sat Nov 20 15:13:51 2004  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkpango.[ch]: Add GdkPangoRenderer, a subclass of
      	PangoRenderer targeting GDK drawables. Use to implement the old
      	gdk_draw_layout() and friends.
      
      	* gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkwindow.c gdk/gdkpixmap.c:
      	Add gdk_draw_glyphs_transformed() gdk_draw_trapezoids() and
      	the corresponding members of GdkDrawableClass. Add a fallback
      	implementation of gdk_draw_trapezoids() in terms of pixbufs.
      
      	* gdk/gdkwindowing.h gdk/x11/gdkg-x11.h: Add
      	_gdk_windowing_gc_get_foreground() to enable the fallback
      	trapezoid implementation.
      
      	* gdk/x11/gdkdrawable-x11.c gdk/x11/gdkdisplay-x11.h: Implement
      	draw_glyph_transformed,	draw_trapezoids.
      
      	* gdk/x11/gdkdrawable-x11.[ch]: Add
      	_gdk_x11_drawable_draw_xtrapezoids, _gdk_x11_drawable_draw_xft_glyphs
      	for use of GdkX11Renderer.
      
      	* gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Implement
      	GDK_TILED, GDK_STIPPLED, GDK_OPAQUE_STIPPLED in the RENDER codepath.
      
      	* gdk/gdkpango-x11.c: Add GdkX11Renderer... a subclass of
      	PangoXftRenderer that does tiles/stipples and fallback rendering
      	of trapezoids without the RENDER extension.
      
      	* gdk/gdkpango-x11.c gdk/x11/gdkscreen-x11.[ch] _gdk_x11_renderer_get:
      	Add _gdk_x11_renderer_get() to get a singleton GdkX11Renderer
      	for the screen.
      
      	* gdk/x11/gdkdrawable-x11.c (get_impl_drawable): Fix a None/NULL
      	confusion.
      
      	* gtk/gtklabel.[ch] gtk/gtk.symbols: Add gtk_label_set/get_angle(),
      	and an ::angle property.
      
      	* gtk/gtklabel.c: Remove #if 0'd dead code gtk_label_paint_word().
      
      	* gtk/gtktextdisplay.c: Switch to using a GtkTextRenderer subclass
      	of GdkPangoRenderer for drawing.
      
      	* gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Switch to using
      	gtk_attr_shape_new_with_data() to store backreferences to
      	embedded pixmaps and widgets. Leave line_display->shaped_objects
      	around for backwords compatibility.
      
      	* gdk/gdkpango.[ch] (gdk_pango_context_set_colormap): Describe
      	as deprecated, remove implementation.
      
      	* gtk/gtkwidget.c (gtk_widget_create_pango_context): Remove
      	call to gdk_pango_context_set_colormap.
      
      	* demos/gtk-demo/Makefile.am demos/gtk-demo/rotated_text.c: Add
      	a demo showing drawing rotated text.
      
      	* tests/testgtk.c: Add a rotated-label test, and also a rotated
      	drawing test (differs from demos/gtk-demo/rotated_text by also
      	using a tile)
      3d737ee8
  8. 11 Jul, 2004 1 commit
    • Soeren Sandmann's avatar
      Bug 143330, support update counter spec. · 1a5e92dd
      Soeren Sandmann authored
      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()
      1a5e92dd
  9. 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
  10. 18 Apr, 2004 1 commit
    • Soeren Sandmann's avatar
      Support for _NET_WM_USER_TIME (bug 115650). Patch by Elijah Newren. · 730da6f8
      Soeren Sandmann authored
      Sun Apr 18 16:15:15 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	Support for _NET_WM_USER_TIME (bug 115650). Patch by Elijah
      	Newren.
      
      	* gdk/x11/gdkwindow-x11.[ch]: Add new internal function
      	_gdk_x11_set_user_time() to set the _NET_WM_USER_TIME property.
      
      	* gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add user_time field
      
      	* gdk/x11/gdkdisplay-x11.c: Add _NET_WM_USER_TIME to list of
      	precached atoms.
      
      	* gdk/x11/gdkinput-x11.c, gdk/x11/gdkevents-x11.c: Set the
      	property on user interaction.
      730da6f8
  11. 02 Feb, 2004 1 commit
  12. 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
  13. 02 Aug, 2003 1 commit
    • Owen Taylor's avatar
      Requires glib-2.3.0, pango-1.2.0. · 88c1c946
      Owen Taylor authored
      Sat Aug  2 12:53:16 2003  Owen Taylor  <otaylor@redhat.com>
      
              * configure.in: Requires glib-2.3.0, pango-1.2.0.
      
              * configure.in: Require Xft version 2,
              remove code for handling older versions of pango and Xft.
              Many miscellaneous improvements to X checks
      
              * acinclude.m4: Add GTK_ADD_LIB() macro for adding
              a library to a variable, avoiding dups.
      
              * gdk/x11/gdkfont-x11.c (gdk_font_from_description_for_display):
              Always load "fixed"
      
              * gdk/x11/gdk*-x11.[ch]: Remove support for Xft1 and
              for pangox.
      88c1c946
  14. 11 Jul, 2003 1 commit
    • Owen Taylor's avatar
      gdk/x11/gdkevents-x11.c (get_real_window) gdk/x11/gdkinput-x11.c · 50da0ae8
      Owen Taylor authored
      Tue Jul  8 20:11:04 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkevents-x11.c (get_real_window)
              gdk/x11/gdkinput-x11.c (_gdk_input_common_init)
              gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init)
              gdk/x11/gdkprivate-x11.h (_gdk_windowing_image_init)
              Don't assume that all events start with XEventAny - Xkb events
              don't! (#105745). So, only do that for core events, and for
              non-core events, add a system for registering event types
              that start with XEventAny.
      
              * gdk/x11/gdkevents-x11.c (gdk_event_translate):
              Check to see if the result of gdk_window_lookup_for_display()
              is actually a window.
      50da0ae8
  15. 05 Jul, 2003 2 commits
    • Owen Taylor's avatar
      Lookup all the atoms in the target list at once. · ba999da1
      Owen Taylor authored
      Sat Jul  5 09:55:38 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkdnd-x11.c (precache_target_list): Lookup
              all the atoms in the target list at once.
      
              * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display):
              Local drag short-circuit.
      
              * gdk/x11/gdkdnd-x11.c (gdk_drag_motion): For the
              local case, poke the actions in directly instead of
              going through xdnd_set_actions.
      
              * gdk/x11/gdkdnd-x11.c (xdnd_read_actions): Short-circuit
              the local case.
      
              * gdk/x11/gdkdnd-x11.c (xdnd_manage_source_filter): Don't
              XSelectInput()/add a filter if the drag is local.
      
              * gdk/x11/gdkdnd-x11.c (gdk_drag_get_selection):
              Simplify handling of "XdndSelection".
      
              * gdk/x11/gdkevents-x11.c (gdk_event_send_client_message_to_all_recurse): Somehow,
              a WM_STATE => _NET_WM_STATE change hand been made here.
      
              * gdk/x11/gdkproperty-x11.c (_gdk_x11_precache_atoms): Free
              xatom_names, not atom_names.
      
              * tests/testdnd.c (target_drag_motion): Make the trashcan
              open again. (Got lost in deprecation cleanup.)
      ba999da1
    • Owen Taylor's avatar
      Move the grabs up earlier, so we don't get a big pile of uncompressed · e5561940
      Owen Taylor authored
      Sat Jul  5 00:49:32 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkdnd.c (gtk_drag_begin): Move the grabs up
              earlier, so we don't get a big pile of uncompressed
              motion events before the grab takes effect.
      
              * gtk/gtkdnd.c (gtk_drag_update_icon): Call
              gdk_window_process_all_updates() so that the area
              we are dragging over gets a change to redraw.
      
              * gtk/gtkdnd.c (_gtk_drag_dest_handle_event): Use
              gdk_window_get_position(), not gdk_window_get_origin().
      
              * gdk/x11/gdkwindow-x11.[ch] (gdk_window_have_shape_ext)
              gdkdisplay-x11.h: use XShapeQueryExtension to
              avoid duplicate XQueryExtension when we actually
              use it. Remove unnecessary caching in GdkDisplayX11.
      e5561940
  16. 18 Apr, 2003 1 commit
  17. 08 Nov, 2002 1 commit
    • Owen Taylor's avatar
      Use g_get_application_name() instead of g_get_prgname() as the default · b179b5eb
      Owen Taylor authored
      Fri Nov  8 17:08:54 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use
              g_get_application_name() instead of g_get_prgname()
              as the default window title when set.
      
              * gdk/x11/gdkwindow-x11.c gdk/x11/gdkdisplay-x11.[ch]:x
              Set g_get_application_name() as the title for the
              leader window the first time we create a window
              pointing to it.
      
              * tests/testgtk.c (main): Call g_set_application_name();
      
              * configure.in (GDK_PIXBUF_VERSION): Require GLib-2.1.3
      b179b5eb
  18. 02 Nov, 2002 1 commit
    • Owen Taylor's avatar
      Add startup notification hooks - mostly based on patch by Havoc Pennington · accc3a33
      Owen Taylor authored
      Sat Nov  2 00:22:33 2002  Owen Taylor  <otaylor@redhat.com>
      
              Add startup notification hooks - mostly based on patch
              by Havoc Pennington in #96772.
      
              * gdk/gdk.h gdk/x11/gdkdisplay-x11.c
              gdk/{win32,linux-fb}/gdkmain-*.c: (gdk_notify_startup_complete):
              new function that indicates an application has finished starting
              up.
      
              * gdk/x11/gdkmain-x11.c gdk/x11/gdkdisplay-x11.c
              (_gdk_windowing_set_default_display): store value of
              DESKTOP_STARTUP_ID on the default screen, and clear it from the
              environment.
      
              * gdk/x11/gdkdisplay-x11.c:
              Set _NET_STARTUP_ID hint on display's group leader window.
      
              * gtk/gtkwindow.c (gtk_window_set_auto_startup_notification):
              function to toggle whether we automatically broadcast that we've
              started up, after mapping the first toplevel window.
              (gtk_window_map): call gdk_screen_notify_startup_complete() by
              default, unless enabled by above.
      
              * gtk/gtkmain.c gtk/gtkcombo.c gtk/gtktoolbar.c:
              Couple of warning fixes.
      accc3a33
  19. 01 Aug, 2002 1 commit
    • 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
  20. 20 Jun, 2002 1 commit
    • Owen Taylor's avatar
      Patch from Erwann Chenede. · 4251a51e
      Owen Taylor authored
      Thu Jun 20 15:53:21 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Patch from Erwann Chenede.
      
      	* gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkprivate-x11.h:
      	Introduce a yes/no/unknown GdkTristate, use it
      	in a couple of places. (#79962)
      
      	* gdk/x11/gdkwindow-x11.c gdk/x11/gdkdisplay-x11.h: Make
      	gravity_works per-display. (#79963)
      4251a51e
  21. 06 Jun, 2002 1 commit
    • Owen Taylor's avatar
      Changes multihead reorganizing code for win32 support, mostly from a patch · aeaaae04
      Owen Taylor authored
      Wed Jun  5 18:34:47 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Changes multihead reorganizing code for win32 support,
      	mostly from a patch by Hans Breuer.
      
      	* gdk/gdkcolor.c gdk/x11/gdkcolor-x11.c gdk/gdkcursor.c
      	  gdk/x11/gdkcursor-x11.c gdk/gdkevents.c gdk/x11/gdkevents-x11.c
      	  gdk/gdkfont.c gdk/x11/gdkfont-x11.c gdk/gdkkeys.c
      	  gdk/x11/gdkkeys-x11.c gdk/gdkimage.c gdk/x11/gdkimage-x11.c
      	  gdk/gdkscreen.c gdk/x11/gdkmain-x11.c
      	  gdk/gdkdisplay.c gdk/gdkevents-x11.c gdk/gdkpango.c
      	  gdk/x11/gdkpango-x11.c gdk/gdkselection.c
      	  gdk/x11/gdkselection-x11.c gdk/gdkwindow.c
      	  gdk/x11/gdkwindow-x11.c gdk/gdkvisual.c gdk/x11/gdkvisual-x11.c:
      	  Move port-independent singlehead wrapper functions into
      	  port-independent part of GDK. (#80009)
      
      	* gdk/win32/gdkcolor-win32.c gdk/win32/gdkcursor-win32.c
      	  gdk/win32/gdkevents-win32.c gdk/win32/gdkfont-win32.c
      	  gdk/win32/gdkimage-win32.c gdk/win32/gdkkeys-win32.c
      	  gdk/win32/gdkmain-win32.c gdk/win32/gdkproperty-win32.c
      	  gdk/win32/gdkselection-win32.c gdk/win32/gkwindow-win32.c:
      	Turn singlehead functions into "multihead" functions that ignore
      	their GdkDisplay or GdkScreen arguments.
      
      	* gdk/win32/gdkdrawable-win32.c gdk/win32/gdkevents-win32.c
      	gdk/win32/gdkinput-win32.c gdk/win32/gdkprivate-win32.h:
      	Misc multihead-compatibility changes.
      
      	* gtk/gtk.def gdk/gdk.def: Update for multihead functions.
      
      	* gdk/gdkcolormap.h gdk/gdkvisual.h gdk/x11/gdkcolormap-x11.c
      	gdk/x11/gdkvisual-x11.c: Remove the screen fields
      	from the public parts of the colormap/visual structures, add accessors
      	instead.
      
      	* gdk/gdkpixbuf-render.c gdk/gdkpixmap.c gdk/gdkrgb.c
      	  gdk/x11/gdkcolormap-x11.c gdk/x11/gdkimage-x11.c
      	  gdk/x11/gdkimage-x11.c gdk/x11/gdkprivate-x11.h gtk/gtkgc.c
      	  gtk/gtkstyle.c gtk/gtkwidget.c: Use accessors to get the screen
      	for colormaps, visuals; move the fields into the private
      	structures for the x11 backend.
      
      	* gdk/gdkdisplay.[ch] gdk/x11/gdkdisplay-x11.[ch]
      	  gdk/gdkscreen.[ch] gdk/x11/gdkscreen-x11.c:
      	Remove virtualization of screen and display functions.
      	(#79990, patch from Erwann Chenede)
      
      	* gdk/win32/gdkdisplay-x11.c gdk/win32/gdkscreen-win32.c
      	gdk/win32/{Makefile.am, makefile.msc, makefile.mingw}:
      	New files containing stub implementations of Display,
      	Screen functions.
      
      	* gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkdisplay-x11.[ch]
      	gdk/x11/gdkx.h: Clean up function exports and what
      	headers they are in. (#79954)
      
      	* gdk/x11/gdkx.h: Fix macro that was referring to a non-existant
      	screen->screen_num. (In the patch for #79972, Erwann Chenede)
      
      	* gdk/gdkscreen.c gdk/gdkwindow.c gdk/x11/gdkinternals.h
      	 gdk/x11/gdkscreen-x11.c: Fix gdk_screen_get_window_at_pointer()
      	to use window hooks. (#79972, patch partly from Erwann Chenede)
      
      	* gdk/x11/gdkdisplay-x11.c gdk/x11/gdkevents-x11.c: Fix
      	some warnings.
      aeaaae04
  22. 03 May, 2002 1 commit
    • Erwann Chenede -'s avatar
      Rationalized the screen initialization process, changed the GdkDisplayX11 · 7fa24a2f
      Erwann Chenede - authored
      2002-05-03 Erwann Chenede - <erwann.chenede@sun.com>
      
        * gdk/x11/gdkvisual-x11.c:
        * gdk/x11/gdkwindow-x11.c:
        * gdk/x11/gdkdisplay-x11.[hc] (gdk_open_display) :
        Rationalized the screen initialization process,
        changed the GdkDisplayX11 screen list to an array.
      
        * gdk/x11/gdkscreen-x11.[hc] (_gdk_x11_screen_new) :
        Moved the xinerama init functions to gdkdisplay-x11.c to
        this file, create a single function to fully initialize
        a GdkScreen. #79981
      7fa24a2f
  23. 25 Apr, 2002 1 commit
    • Owen Taylor's avatar
      Start of integration of Erwann Chenede's multihead work from the · 425b9886
      Owen Taylor authored
      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.
      425b9886