1. 11 Feb, 2014 1 commit
  2. 04 Feb, 2014 1 commit
  3. 03 Jul, 2013 1 commit
  4. 05 May, 2013 1 commit
  5. 28 Dec, 2012 1 commit
  6. 27 Feb, 2012 2 commits
  7. 18 Dec, 2011 2 commits
  8. 01 Feb, 2011 1 commit
  9. 24 Dec, 2010 1 commit
  10. 21 Dec, 2010 3 commits
  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 3 commits
  16. 25 May, 2010 1 commit
    • Matthias Clasen's avatar
      Seal gdk · 50a72eda
      Matthias Clasen authored
      Add G_SEAL annotation for struct members, and add accessors for
      the (useful) fields. Patch based on work by Garrett Regier,
      see bug #592580.
      50a72eda
  17. 02 May, 2010 1 commit
  18. 08 Dec, 2009 1 commit
  19. 02 Apr, 2009 1 commit
  20. 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
  21. 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
  22. 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
  23. 08 Mar, 2006 1 commit
    • Michael Natterer's avatar
      gdk/gdkscreen.h gdk/x11/gdkscreen-x11.c added · 5afb4f0f
      Michael Natterer authored
      2006-03-08  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/gdkscreen.h
      	* gdk/x11/gdkscreen-x11.c
      	* gdk/gdk.symbols: added gdk_screen_get_active_window() and
      	gdk_screen_get_window_stack() (patch from maemo-gtk).
      	Fixes bug #320881.
      
      	* gdk/directfb/gdkscreen-directfb.c
      	* gdk/quartz/gdkscreen-quartz.c
      	* gdk/win32/gdkscreen-win32.c: added the functions as stubs.
      5afb4f0f
  24. 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
  25. 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
  26. 09 May, 2005 1 commit
    • Owen Taylor's avatar
      Fill in unused bits so they can be used for the depth-32 target case. · 485fd851
      Owen Taylor authored
      2005-05-09  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br):
              Fill in unused bits so they can be used for the depth-32 target case.
              Rewrite so that that gives a marginal speedup rather than a
              marginal slowdown. (on x86)
      
              * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
              Add gdk_screen_get_rgba_colormap/visual to get a visual for
              windows with an alpha channel, if one exists.
      
              * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
              Stub out gdk_screen_get_rgba_colormap/visual.
      
              * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
              "unused" wasn't right for depth == 32, since it depended on
              shifting by 32.
      
              * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
              Keith Packard,
              http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
      
              * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
              Implement again, without using Xft.
      
              * tests/testgtk.c: Add a test for windows with an alpha channel.
      485fd851
  27. 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
  28. 18 Feb, 2004 1 commit
    • Soeren Sandmann's avatar
      GC caching, bug #125645 (based on patch by Brian Cameron) · 1c51c486
      Soeren Sandmann authored
      Wed Feb 18 01:44:59 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	GC caching, bug #125645 (based on patch by Brian Cameron)
      
      	* gdk/gdkscreen.h (struct _GdkScreen): Add GC cache
      	* gdk/gdkscreen.c (gdk_screen_dispose): New function. Unref the
      	cached GC's here.
      	* gdk/gdkdraw.c (_gdk_drawable_get_scratch_gc): New function to
      	get a scratch gc.
      	* gdk/gdkinternals.h: Declare the function here
      
      	* gdk/gdkdraw.c (gdk_drawable_real_draw_pixbuf): Use
      	_gdk_drawable_get_scratch_gc() instead of creating a new GC.
      	* gdk/x11/gdkgeometry-x11.c (gdk_window_copy_area_scroll): same
      	* gdk/x11/gdkdrawable-x11.c (draw_with_images): same
      	* gdk/gdkwindow.c (gdk_window_get_composite_drawable): same
      	* gdk/gdkwindow.c (gdk_window_end_paint): same
      	* gdk/gdkpixmap.c (gdk_pixmap_colormap_new_from_pixbuf): same
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_threshold_alpha): same
      	* gdk/gdkpixbuf-render.c (gdk_pixbuf_render_pixmap_and_mask_for_colormap): same
      1c51c486
  29. 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
  30. 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
  31. 04 Oct, 2002 1 commit
    • Owen Taylor's avatar
      Add a check for the Xrandr extension. · 8555f427
      Owen Taylor authored
      Fri Oct  4 11:43:47 2002  Owen Taylor  <otaylor@redhat.com>
      
              * configure.in: Add a check for the Xrandr extension.
      
              * gdk/gdkscreen.[ch]: Add a size-changed signal.
      
              * gdk/x11/gdkscreen-x11.[ch]: Patch from Keith packard
              to hook up ConfigureNotify events on the root window
              to the ::size-changed signal. (#94560)
      
              * gtk/gtkimcontextsimple.c: Warning fixes
      8555f427
  32. 25 Sep, 2002 1 commit
    • Owen Taylor's avatar
      Add gdk_screen_make_display_name(), which returns a display name that can · d41f210d
      Owen Taylor authored
      Wed Sep 25 10:51:24 2002  Owen Taylor  <otaylor@redhat.com>
              * gdk/gdkscreen.h gdk/{x11,win32,linux-fb}/gdkscreen-*.c:
              Add gdk_screen_make_display_name(), which returns a
              display name that can be used to open a display with the
              screen as the default (Based on patch from Mark McLoughlin,
              #86013)
      d41f210d
  33. 01 Aug, 2002 1 commit
    • 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
  34. 20 Jun, 2002 1 commit
    • Owen Taylor's avatar
      Renames: · 28c2b0a3
      Owen Taylor authored
      Thu Jun 20 19:41:09 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdisplay.h gdk/gdkscreen.h gdk/**.c gtk/*.c
              tests/*.c: Renames:
      
               gdk_get_default_display => gdk_display_get_default
               gdk_get_default_screen  => gdk_screen_get_default
               gdk_open_display        => gdk_display_open
      28c2b0a3