1. 02 Dec, 2010 5 commits
  2. 15 Nov, 2010 1 commit
  3. 18 Oct, 2010 1 commit
  4. 15 Oct, 2010 1 commit
  5. 26 Sep, 2010 3 commits
  6. 18 Sep, 2010 1 commit
    • Havoc Pennington's avatar
      Revamp and modernize X error traps · b837ef5a
      Havoc Pennington authored
      * add per-display gdk_x11_display_error_trap_push()
        (X11-specific because gdk_error_trap_push() probably
        should have been)
      * make gdk_error_trap_push() handle only GDK displays
        not displays opened without a GDK wrapper
      * make gdk_error_trap_pop() and gdk_x11_display_error_trap_pop()
        automatically sync only if needed, so manual gdk_flush() is not
      * add gdk_error_trap_pop_ignored() which just asynchronously
        ignores errors, so never needs to sync
      * add G_GNUC_WARN_UNUSED_RESULT to plain pop(), because
        if you use plain pop() and don't need the return value,
        the async gdk_error_trap_pop_ignored() should be used
        instead. This results in lots of warnings to clean
        up in a later patch.
      The main objective here was to avoid the need to sync just
      to ignore an error. Now, syncing is automatic, and only
      happens when we need to know the error code.
  7. 09 Sep, 2010 1 commit
    • Matthias Clasen's avatar
      Drop the gdk_display variable from gdk · 0dcaad3a
      Matthias Clasen authored
      This was the last exported variable; it wasn't multihead safe,
      and there's easy replacement with gdk_display_get_default().
      Also drop the GDK_DISPLAY() macro which was just a wrapper around
      the variable.
  8. 10 Aug, 2010 2 commits
  9. 28 Jun, 2010 1 commit
  10. 07 Jun, 2010 1 commit
  11. 04 Sep, 2009 1 commit
  12. 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
      	* 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
      	* gdk/win32/gdkwin32.h
      	* gdk/x11/gdkx.h: only include <gdk/gdkprivate.h> and remove all
      	other includes.
      svn path=/trunk/; revision=20217
  13. 13 Dec, 2007 1 commit
    • Søren Sandmann's avatar
      Add RandR 1.2 support · 053cbe6d
      Søren Sandmann authored
      Thu Dec 13 13:14:50 2007  Søren Sandmann  <sandmann@redhat.com>
              * Add RandR 1.2 support
              - New monitors_changed signal - New API to get width/height of
                monitors, and the name of the plug
      svn path=/trunk/; revision=19173
  14. 29 Apr, 2007 1 commit
  15. 13 Mar, 2007 1 commit
    • Emmanuele Bassi's avatar
      Apply patch by Vytautas Liuolia for changing the startup notification id · 87c28d77
      Emmanuele Bassi authored
      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
  16. 19 Jul, 2006 1 commit
  17. 11 Jul, 2005 1 commit
    • Matthias Clasen's avatar
      Make gdk_window_present() move the window to the current desktop, instead · e5f444e9
      Matthias Clasen authored
      2005-07-11  Matthias Clasen  <mclasen@redhat.com>
      	Make gdk_window_present() move the window to the current
      	desktop, instead of letting the WM change the current
      	desktop to where the window is.  (#166379, Elijah Newren)
      	* gdk/gdk.symbols:
      	* gdk/x11/gdkx.h:
      	* gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
      	New function to move a window to the current desktop.
      	* gtk/gtkwindow.c (gtk_window_present_with_time): Move the
      	window to the current desktop before giving it focus.
  18. 15 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Keep a reference to the GdkCursor and add a private getter for it, so that · 3c96358f
      Matthias Clasen authored
      2005-06-15  Matthias Clasen  <mclasen@redhat.com>
      	* gdk/x11/gdkwindow-x11.[hc]: Keep a reference to the
      	GdkCursor and add a private getter for it, so that we can
      	update the cursor when the cursor theme changes.
      	* gdk/gdk.symbols:
      	* gdk/x11/gdkx.h:
      	* gdk/x11/gdkcursor-x11.c (gdk_x11_display_set_cursor_theme):
      	New function to change the cursor theme.
  19. 19 Jan, 2005 1 commit
  20. 09 Oct, 2004 1 commit
  21. 14 Dec, 2003 1 commit
    • Matthias Clasen's avatar
      Rename from _gdk_x11_register_event_type(), added API docs. · 1014c413
      Matthias Clasen authored
      Sun Dec 14 01:28:23 2003  Matthias Clasen  <maclas@gmx.de>
      	* gdk/x11/gdkprivate-x11.h:
      	* gdk/x11/gdkx.h:
      	* gdk/x11/gdkevents-x11.c (gdk_x11_register_standard_event_type):
      	Rename from _gdk_x11_register_event_type(), added API docs.
      	* gdk/x11/gdkinput-x11.c (_gdk_input_common_init):
      	* gdk/x11/gdkimage-x11.c (_gdk_windowing_image_init): Adjust
      	all callers.  (#121471, Bill Haneman)
  22. 17 Nov, 2002 1 commit
    • Manish Singh's avatar
      add -DGDK_DISABLE_DEPRECATED · 89fd6ad3
      Manish Singh authored
      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
              * 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/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_
              * 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
              * gdk/x11/gdkcolor-x11.c: remove duplicate doc string for
              * 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
              * 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.
  23. 07 Nov, 2002 1 commit
  24. 07 Oct, 2002 1 commit
  25. 25 Sep, 2002 1 commit
    • Havoc Pennington's avatar
      fix GtkWindowMnemonic to have a separate typedef · 1689117c
      Havoc Pennington authored
      2002-09-24  Havoc Pennington  <hp@redhat.com>
      	* gtk/gtkwindow.c: fix GtkWindowMnemonic to have a separate
      	* 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
      	* gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb): mop up unused
      	* 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_unfullscreen): new functions
      	* gdk/gdkevents.h (GdkWindowState): add FULLSCREEN state
      	* gdk/gdkwindow.h (GdkWindowTypeHint): add missing type hint
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_skip_taskbar_hint):
      	(gdk_window_unfullscreen): new functions
      	(set_initial_hints): set fullscreen here if appropriate
  26. 24 Sep, 2002 3 commits
    • Owen Taylor's avatar
      Add a GtkAccelGroupFindFunc to clean up the prototype. (#76670, Vitaly · ad07608c
      Owen Taylor authored
      Tue Sep 24 17:49:52 2002  Owen Taylor  <otaylor@redhat.com>
              * gtk/gtkaccelgroup.[ch] (gtk_accel_group_find):
              Add a GtkAccelGroupFindFunc to clean up the
              prototype. (#76670, Vitaly Tishkov)
              * gdk/x11/gdkvisual-x11.c gdk/x11/gdkx.h: Rename
              gdkx_visual_get_for_screen() to
              gdk_x11_screen_lookup_visual(). (#85702)
    • Matthias Clasen's avatar
      Add a missing ; to make things compile. · beb31ce0
      Matthias Clasen authored
      	* gdk/x11/gdkx.h: Add a missing ; to make things compile.
    • Owen Taylor's avatar
      Delete unused private gdk_visual_lookup(), make gdk_colormap_lookup() · f9d267ae
      Owen Taylor authored
      Tue Sep 24 16:04:44 2002  Owen Taylor  <otaylor@redhat.com>
              * gdkprivate-x11.h gdkcolor-x11.c gdkvisual-x11.c
              gdkwindow-x11.c: Delete unused private gdk_visual_lookup(),
              make gdk_colormap_lookup() private gdkcolor-x11.c.
              make gdk_window_add_colormap_windows private to gdkwindow-x11.c
              * gdk/x11/gdkx.h gdk/x11/gdkcolor-x11.c
              gdkscreen-x11.h: Add gdk_x11_colormap_foreign_new(),
              GDK_ENABLE_BROKEN gdkx_colormap_get(), make the
              colormap hash per-screen. (#85697)
              * gdk/x11/gdkxid.c (gdk_xid_table_lookup_for_display):
              Remove a bit of unecessary code.
  27. 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
      	* 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.
  28. 30 Apr, 2002 1 commit
    • Alex Larsson's avatar
      Doc fixes. · 3e8df3c3
      Alex Larsson authored
      Tue Apr 30 12:28:27 2002  Owen Taylor  <otaylor@redhat.com>
              * gdk/gdkdisplay.c gdk/gdkpango.c gdk/gdkpixmap.c
              gdk/x11/gdkdisplay-x11.c gdk/x11/gdkevents-x11.c
              gdk/x11/gdkpixmap-x11.c gdk/x11/gdkx.h: Doc fixes.
      Tue Apr 30 11:37:09 2002  Owen Taylor  <otaylor@redhat.com>
              * modules/input/gtkimcontextxim.c: Make multihead-safe;
              use a different IM context per display.
      	* configure.in acconfig.h: Add Xinerama checks from
              multihead branch, changing HAS_XINERAMA => HAVE_XINERAMA.
              * gdk/x11/gdkdisplay-x11.c: HAS_XINERAMA => HAVE_XINERAMA.
      2002-04-29  Alex Larsson  <alexl@redhat.com>
      	* gdk/gdkpango.c (gdk_draw_layout_line_with_colors):
              Use tmp also if foreground is set.
  29. 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
              * gdk/gdkscreen.[ch]: Add gdk_screen__* variants of functions
              like gdk_rgb_get_colormap() that used to get/list global
              * 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
              * 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.
  30. 22 Oct, 2001 1 commit
    • Owen Taylor's avatar
      Fix problem with g_return_if_fail return value. · 46dde804
      Owen Taylor authored
      Sun Oct 21 23:27:00 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/gtkwidget.c (gtk_widget_translate_coordinates): Fix
      	problem with g_return_if_fail return value.
       	* gdk/x11/gdkproperty-x11.c docs/Changes-2.0.txt: Move over the
      	virtual atom code from the gdk-multihead branch, removing the per-display
      	part. Virtualizing atoms needs to be done now to prevent compat
      	breakage in direct Xlib accessing code in the future. (#62208)
       	* gdk/x11/gdkx.h: gdk/gdk/x11/gdkproperty-x11.c: Export
       	gdk_x11_xatom_to_atom, gdk_x11_atom_to_xatom().
      	* gdk/gdktypes.h docs/Changes-2.0.txt: Make GdkAtom
      	an opaque pointer type so the compiler catches attempts
      	to mingle it with X atoms.
      	* gdk/x11/{gdkdnd-x11.c,gdkevents-x11.c,gdkglobals-x11.c,
      	  gdkkeys-x11.c, gdkmain-x11.c, gdkprivate-x11.c,
      	  gdkproperty-x11.c, gdkselection-x11.c, gdkwindow-x11.c}
      	Fix up for above atom changes.
      	* gdk/gdkselection.h (GDK_SELECTION_CLIPBOARD): Add, since we
      	now have the ability to add custom predefines.
      	* gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}:
      	Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls
      	to gtk_clipboard_get().
      	* gdk/win32/gdkproperty-win32.c: Add CLIPBOARD, fix up
      	for GdkAtom => pointer change.
      	* gdk/linux-fb/gdkproperty-fb.c: Fix handling of predefined
      	atoms, fix for GdkAtom => pointer change.
  31. 18 Oct, 2001 1 commit
    • Matthias Clasen's avatar
      Add gdk_window_lookup, gdk_window_foreign_new, gdk_pixmap_lookup and · 73e845ee
      Matthias Clasen authored
              * 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)