summaryrefslogtreecommitdiff
path: root/src/backends/meta-input-settings.c
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2017-04-10 17:31:50 +0800
committerJonas Ådahl <jadahl@gmail.com>2017-05-24 11:18:56 +0800
commit81e99c2680413e70702c71733a9d7360dc928abc (patch)
tree2f4b5481c97eac3e21f2b0cbd6e6dbead4be6647 /src/backends/meta-input-settings.c
parent755755a2f348f4f3bab27555fa9ef0ebcc0c4c03 (diff)
downloadmutter-81e99c2680413e70702c71733a9d7360dc928abc.tar.gz
input-settings: Minor structural cleanup
Let the backend implementations create their own input settings backend, as is done with other backend specific special purpose backends. Also use the macro for declaring the GType. https://bugzilla.gnome.org/show_bug.cgi?id=782152
Diffstat (limited to 'src/backends/meta-input-settings.c')
-rw-r--r--src/backends/meta-input-settings.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/backends/meta-input-settings.c b/src/backends/meta-input-settings.c
index 32512b4ea..0566e0d96 100644
--- a/src/backends/meta-input-settings.c
+++ b/src/backends/meta-input-settings.c
@@ -33,12 +33,6 @@
#include "meta-input-settings-private.h"
#include "backends/meta-logical-monitor.h"
#include "backends/meta-monitor.h"
-#include "x11/meta-input-settings-x11.h"
-
-#ifdef HAVE_NATIVE_BACKEND
-#include "native/meta-backend-native.h"
-#include "native/meta-input-settings-native.h"
-#endif
#include <glib/gi18n-lib.h>
#include <meta/util.h>
@@ -1478,23 +1472,6 @@ meta_input_settings_init (MetaInputSettings *settings)
priv->two_finger_devices = g_hash_table_new (NULL, NULL);
}
-MetaInputSettings *
-meta_input_settings_create (void)
-{
-#ifdef HAVE_NATIVE_BACKEND
- MetaBackend *backend;
-
- backend = meta_get_backend ();
-
- if (META_IS_BACKEND_NATIVE (backend))
- return g_object_new (META_TYPE_INPUT_SETTINGS_NATIVE, NULL);
-#endif
- if (!meta_is_wayland_compositor ())
- return g_object_new (META_TYPE_INPUT_SETTINGS_X11, NULL);
-
- return NULL;
-}
-
GSettings *
meta_input_settings_get_tablet_settings (MetaInputSettings *settings,
ClutterInputDevice *device)