display: Add some signals to the new configuration API

These will be useful to keep track of changes across different places
in the new UI.

https://bugzilla.gnome.org/show_bug.cgi?id=785949
This commit is contained in:
Rui Matos 2017-08-02 22:44:50 +02:00
parent 9b0cf3391c
commit 7c89e30a47
3 changed files with 49 additions and 4 deletions

View file

@ -82,6 +82,26 @@ cc_display_monitor_init (CcDisplayMonitor *self)
static void
cc_display_monitor_class_init (CcDisplayMonitorClass *klass)
{
g_signal_new ("rotation",
CC_TYPE_DISPLAY_MONITOR,
G_SIGNAL_RUN_LAST,
0, NULL, NULL, NULL,
G_TYPE_NONE, 0);
g_signal_new ("mode",
CC_TYPE_DISPLAY_MONITOR,
G_SIGNAL_RUN_LAST,
0, NULL, NULL, NULL,
G_TYPE_NONE, 0);
g_signal_new ("primary",
CC_TYPE_DISPLAY_MONITOR,
G_SIGNAL_RUN_LAST,
0, NULL, NULL, NULL,
G_TYPE_NONE, 0);
g_signal_new ("active",
CC_TYPE_DISPLAY_MONITOR,
G_SIGNAL_RUN_LAST,
0, NULL, NULL, NULL,
G_TYPE_NONE, 0);
}
const char *
@ -237,6 +257,11 @@ cc_display_config_init (CcDisplayConfig *self)
static void
cc_display_config_class_init (CcDisplayConfigClass *klass)
{
g_signal_new ("primary",
CC_TYPE_DISPLAY_CONFIG,
G_SIGNAL_RUN_LAST,
0, NULL, NULL, NULL,
G_TYPE_NONE, 0);
}
GList *