1. 06 Oct, 2012 1 commit
  2. 27 Feb, 2012 1 commit
  3. 24 Feb, 2012 1 commit
  4. 21 Feb, 2012 1 commit
  5. 18 Dec, 2011 1 commit
    • Matthias Clasen's avatar
      Add gdk_screen_get_monitor_workarea · c6df2828
      Matthias Clasen authored
      The function returns the part of a monitors area that should be
      used for positioning popups, menus, etc. The only non-trivial
      implementation atm is in the X backend, all the other backends
      just return the full monitor area. The X implementation is
      currently suboptimal, since it requires roundtrips to collect
      the necessary information. It should be changed to monitor
      the properties for changes, when XFixes allows to monitor
      individual properties.
      https://bugzilla.gnome.org/show_bug.cgi?id=641999
      c6df2828
  6. 26 Sep, 2011 1 commit
  7. 09 Feb, 2011 1 commit
    • Matthias Clasen's avatar
      Give the GDK docs some love · 1f4bb70b
      Matthias Clasen authored
      Reorganize some sections, drop the largely redundant multihead
      section, add some more information about multiple backends.
      1f4bb70b
  8. 01 Feb, 2011 1 commit
  9. 21 Dec, 2010 4 commits
  10. 06 Dec, 2010 1 commit
  11. 16 Nov, 2010 1 commit
  12. 15 Nov, 2010 1 commit
  13. 15 Oct, 2010 1 commit
  14. 26 Sep, 2010 1 commit
    • Benjamin Otte's avatar
      API: Remove colormap handling from GdkScreen · cf4cb4f6
      Benjamin Otte authored
      In particular, the following functions are gone:
      - gdk_screen_get_default_colormap()
      - gdk_screen_set_default_colormap()
      - gdk_screen_get_system_colormap()
      - gdk_screen_get_rgba_colormap()
      cf4cb4f6
  15. 10 Aug, 2010 2 commits
  16. 10 Jul, 2010 1 commit
  17. 04 Apr, 2010 1 commit
  18. 19 Feb, 2010 1 commit
  19. 26 Oct, 2009 1 commit
  20. 24 Mar, 2009 1 commit
  21. 21 Oct, 2008 1 commit
    • Michael Natterer's avatar
      gdk/gdkdraw.c gdk/gdkimage.c gdk/gdkscreen.c replace assertions for obj != · 6df89b0a
      Michael Natterer authored
      2008-10-21  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/gdkdraw.c
      	* gdk/gdkimage.c
      	* gdk/gdkscreen.c
      	* gdk/gdkwindow.c: replace assertions for obj != NULL by
      	GDK_IS_OBJ(), remove redundant != NULL checks when there is
      	already a type check, add some g_return_if_fail() that were
      	missing entirely, fix some broken indentation and spacing.
      
      
      svn path=/trunk/; revision=21695
      6df89b0a
  22. 11 Aug, 2008 1 commit
  23. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · d97cdbdf
      Johan Dahlin authored
      2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
      
          * *.[ch]: Include "config.h" instead of <config.h>
          Command used:
          find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
          Rubberstamped by Mitch and Tim
      
      
      svn path=/trunk/; revision=20669
      d97cdbdf
  24. 14 Jan, 2008 1 commit
  25. 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
      053cbe6d
  26. 22 May, 2006 2 commits
    • Behdad Esfahbod's avatar
      Rollback the following changes, to fix it the proper way in Pango: · fb3eeb86
      Behdad Esfahbod authored
      2006-05-22  Behdad Esfahbod  <behdad@gnome.org>
      
              Rollback the following changes, to fix it the proper way in Pango:
      
              * gdk/gdkinternals.h:
              * gdk/gdkscreen.c (gdk_screen_class_init), (gdk_screen_finalize),
              (update_fontmap_resolution), (gdk_screen_set_resolution):  Add new
              function _gdk_screen_get_font_map() and have one fontmap per screen,
              with the correct resolution set on it.
      
              * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Use
              _gdk_screen_get_font_map() instead of setting resolution on the
              PangoCairoContext.  (#342529)
      fb3eeb86
    • Behdad Esfahbod's avatar
      Add new function _gdk_screen_get_font_map() and have one fontmap per · f3b98672
      Behdad Esfahbod authored
      2006-05-21  Behdad Esfahbod  <behdad@gnome.org>
      
              * gdk/gdkinternals.h:
              * gdk/gdkscreen.c (gdk_screen_class_init), (gdk_screen_finalize),
              (update_fontmap_resolution), (gdk_screen_set_resolution):  Add new
              function _gdk_screen_get_font_map() and have one fontmap per screen,
              with the correct resolution set on it.
      
              * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Use
              _gdk_screen_get_font_map() instead of setting resolution on the
              PangoCairoContext.  (#342529)
      f3b98672
  27. 14 May, 2006 1 commit
  28. 25 Apr, 2006 1 commit
    • Søren Sandmann's avatar
      Create 'composited' label. · b9d1a034
      Søren Sandmann authored
      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)
      b9d1a034
  29. 04 Apr, 2006 1 commit
    • Matthias Clasen's avatar
      Use G_DEFINE_TYPE. · 10f0736a
      Matthias Clasen authored
      2006-04-04  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/gdkdisplay.c:
      	* gdk/gdkdisplaymanager.c:
      	* gdk/gdkdraw.c:
      	* gdk/gdkkeys.c:
      	* gdk/gdkpixmap.c:
      	* gdk/gdkscreen.c:
      	* gdk/gdkwindow.c:
      	* gdk/x11/gdkcolor-x11.c:
      	* gdk/x11/gdkdisplay-x11.c:
      	* gdk/x11/gdkdnd-x11.c:
      	* gdk/x11/gdkdrawable-x11.c:
      	* gdk/x11/gdkgc-x11.c:
      	* gdk/x11/gdkimage-x11.c:
      	* gdk/x11/gdkinput.c:
      	* gdk/x11/gdkpixmap-x11.c:
      	* gdk/x11/gdkscreen-x11.c:
      	* gdk/x11/gdkwindow-x11.c: Use G_DEFINE_TYPE.
      
      	* gdk/x11/gdkcolor-x11.c:
      	* gdk/x11/gdkdnd-x11.c:
      	* gdk/x11/gdkimage-x11.c: Use instance private data.
      10f0736a
  30. 10 Nov, 2005 1 commit
    • Michael Natterer's avatar
      Applied patch from maemo-gtk that addresses many issues wrt display · 8bdc0bf9
      Michael Natterer authored
      2005-11-10  Michael Natterer  <mitch@imendio.com>
      
      	Applied patch from maemo-gtk that addresses many issues wrt
      	display migration and display closing (bug #85715).
      
      	* gdk/gdkdisplay.c (gdk_display_dispose): don't just set the
      	default display to NULL when it's closed. Instead set the most
      	recently opened display as new default (if one exists).
      
      	* gdk/gdkpango.c (on_renderer_display_closed): fixed signature
      	of this callback.
      
      	* gdk/gdkscreen.c (gdk_screen_dispose): check if the GCs still
      	exist before unrefing them.
      
      	* gdk/gdkwindow.c (_gdk_window_destroy_hierarchy): if the screen
      	is closed, allow destruction of the root window.
      
      	* gdk/x11/gdkdisplay-x11.c: moved some stuff from finalize() to
      	dispose(), free stuff that was leaked before.
      
      	* gdk/x11/gdkevents-x11.c (_gdk_x11_events_uninit_screen): check if
      	the xsettings_client still exists before destroying it.
      
      	* gdk/x11/gdkkeys-x11.c: added finalization and free the allocated
      	X resources.
      
      	* gdk/x11/gdkpixmap-x11.c: moved stuff from finalize() to new
      	dispose() implementation.
      
      	* gdk/x11/gdkscreen-x11.c: moved stuff from finalize() to
      	dispose() and check if it still exists before unrefing it. Set
      	their pointers to NULL/None *after* upchaining in dispose(),
      	because X11 implementations of members of the parent class still
      	need them for their own destruction.
      
      	* gdk/x11/gdkvisual-x11.c: removed finalize() implementation which
      	was g_error()ing when finalizing a visual.
      
      	* gtk/gtkclipboard.c (gtk_clipboard_finalize): don't use
      	get_clipboard_widget() because it would create the widget if it
      	doesn't exist. Use g_object_get_data() directly instead.
      
      	* gtk/gtktextdisplay.c (on_renderer_display_closed): fixed signature
      	of this callback.
      8bdc0bf9
  31. 01 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Intern some more strings. · 94eec042
      Matthias Clasen authored
      2005-09-01  Matthias Clasen  <mclasen@redhat.com>
      
              * gdk/*.c: Intern some more strings.
              * gtk/gtkintl.h:
              * gtk/*.c: Define an I_() macro and use it instead of the
              bulky g_intern_static_string().
      94eec042
  32. 31 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      Intern type names before registering the type to avoid unnecessary copies. · 476e138d
      Matthias Clasen authored
      2005-08-31  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_get_type):
      	* gdk/x11/gdkscreen-x11.c (_gdk_screen_x11_get_type):
      	* gdk/x11/gdkpixmap-x11.c (gdk_pixmap_impl_x11_get_type):
      	* gdk/x11/gdkkeys-x11.c (gdk_keymap_x11_get_type):
      	* gdk/x11/gdkinput.c (gdk_device_get_type):
      	* gdk/x11/gdkimage-x11.c (gdk_image_get_type):
      	* gdk/x11/gdkgc-x11.c (_gdk_gc_x11_get_type):
      	* gdk/x11/gdkdrawable-x11.c (_gdk_drawable_impl_x11_get_type):
      	* gdk/x11/gdkdnd-x11.c (gdk_drag_context_get_type):
      	* gdk/x11/gdkdisplay-x11.c (_gdk_display_x11_get_type):
      	* gdk/x11/gdkcolor-x11.c (gdk_colormap_get_type):
      	* gdk/gdkwindow.c (gdk_window_object_get_type):
      	* gdk/gdkscreen.c (gdk_screen_get_type):
      	* gdk/gdkrectangle.c (gdk_rectangle_get_type):
      	* gdk/gdkpixmap.c (gdk_pixmap_get_type):
      	* gdk/gdkkeys.c (gdk_keymap_get_type):
      	* gdk/gdkfont.c (gdk_font_get_type):
      	* gdk/gdkevents.c (gdk_event_get_type):
      	* gdk/gdkdraw.c (gdk_drawable_get_type):
      	* gdk/gdkdisplaymanager.c (gdk_display_manager_get_type):
      	* gdk/gdkdisplay.c (gdk_display_get_type):
      	* gdk/gdkcursor.c (gdk_cursor_get_type):
      	* gdk/gdkcolor.c (gdk_color_get_type): Intern type names before
      	registering the type to avoid unnecessary copies.
      476e138d
  33. 26 Aug, 2005 1 commit
    • Matthias Clasen's avatar
      Make the GdkScreen font options api public, and add properties · b3a75776
      Matthias Clasen authored
      2005-08-26  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/gdk.symbols:
      	* gdk/gdkscreen.h:
      	* gdk/gdkscreen.c: Make the GdkScreen font options api
      	public, and add properties GdkScreen::font-options and
      	GdkScreen::resolution.  (#314004)
      
      	* gdk/gdkpango.c:
      	* gtk/gtksettings.c:
      	* gtk/gtkwidget.c: Adjust all callers.
      
      	* gdk/gdkintl.h: Simplify and use glib/gi18n-lib.h.
      	* gdk/gdkpango.c: Include gdkintl.h, not gtkintl.h.
      	* gdk/gdkscreen.c: Include gdkintl.h.
      b3a75776
  34. 25 Aug, 2005 1 commit
  35. 24 Aug, 2005 1 commit
    • Owen Taylor's avatar
      Fix for #314004, reported by Michael Reinsch: · 2b1bea02
      Owen Taylor authored
      2005-08-23  Owen Taylor  <otaylor@redhat.com>
      
              Fix for #314004, reported by Michael Reinsch:
      
              * gdk/gdk.symbols:
              * gdk/gdkscreen.[ch]: Add gdk_screen_get/set_font_options_libgtk_only()
              Add gdk_screen_get/set_resolution_libgtk_only()
      
              * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Set
              the options for the screen on the newly created context.
      
              * gtk/gtksettings.c (settings_update_font_options/dpi) gtkwidget.c:
              Move font options and dpi code from gtkwidget.c to gtksettings.c, set
              the font options on the screen.
      
              * gtk/gtkwidget.c (gtk_widget_update_pango_context): Just get
              the font options from the screen and set them on the context.
      2b1bea02