diff options
author | Søren Sandmann <sandmann@redhat.com> | 2007-12-13 18:27:05 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2007-12-13 18:27:05 +0000 |
commit | 053cbe6dafda0844f3c70b02826fb22a4821fa15 (patch) | |
tree | b4e7d650fae34487ae2125dfcf6bc923e57aeaac /gdk/gdkscreen.c | |
parent | 935d9a6574437266b0b0ad59453cd3cbc5037ba3 (diff) | |
download | gtk+-053cbe6dafda0844f3c70b02826fb22a4821fa15.tar.gz |
Add RandR 1.2 support
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
Diffstat (limited to 'gdk/gdkscreen.c')
-rw-r--r-- | gdk/gdkscreen.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gdk/gdkscreen.c b/gdk/gdkscreen.c index 986f9f5525..72aa3f7313 100644 --- a/gdk/gdkscreen.c +++ b/gdk/gdkscreen.c @@ -51,6 +51,7 @@ enum { SIZE_CHANGED, COMPOSITED_CHANGED, + MONITORS_CHANGED, LAST_SIGNAL }; @@ -124,6 +125,28 @@ gdk_screen_class_init (GdkScreenClass *klass) g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); + + /** + * GdkScreen::monitors-changed: + * @screen: the object on which the signal is emitted + * + * The ::monitors_changed signal is emitted when the number, size + * or position of the monitors attached to the screen change. + * + * Only for X for now. Future implementations for Win32 and + * OS X may be a possibility. + * + * Since: 2.14 + */ + signals[MONITORS_CHANGED] = + g_signal_new (g_intern_static_string ("monitors_changed"), + G_OBJECT_CLASS_TYPE (klass), + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (GdkScreenClass, monitors_changed), + NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, + 0); } static void |