summaryrefslogtreecommitdiff
path: root/gdk/gdkdisplaymanager.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-03-23 19:39:58 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-03-23 19:39:58 -0400
commitc5d7871edae195b7d7f035ed46449b5e8fa5073f (patch)
tree53611276a14c498ef166ed15e0aa2b2706450054 /gdk/gdkdisplaymanager.h
parent97ebaee0e21a70d92423819de0792ead09b2bc20 (diff)
downloadgtk+-c5d7871edae195b7d7f035ed46449b5e8fa5073f.tar.gz
Add gdk_display_manager_peek
Instead of failing with an error if no GDK backend is found like gdk_display_manager_get(), the new peek function silently returns NULL.
Diffstat (limited to 'gdk/gdkdisplaymanager.h')
-rw-r--r--gdk/gdkdisplaymanager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/gdkdisplaymanager.h b/gdk/gdkdisplaymanager.h
index 419b3f5739..4392af04f4 100644
--- a/gdk/gdkdisplaymanager.h
+++ b/gdk/gdkdisplaymanager.h
@@ -43,6 +43,8 @@ G_BEGIN_DECLS
GType gdk_display_manager_get_type (void) G_GNUC_CONST;
GdkDisplayManager *gdk_display_manager_get (void);
+GDK_AVAILABLE_IN_3_10
+GdkDisplayManager *gdk_display_manager_peek (void);
GdkDisplay * gdk_display_manager_get_default_display (GdkDisplayManager *manager);
void gdk_display_manager_set_default_display (GdkDisplayManager *manager,
GdkDisplay *display);