Commit a9e37ede authored by Ian Martin's avatar Ian Martin Committed by Murray Cumming

Backend: Add get_default() and settings_changed signal.

This is based on changes in this patch:
https://bugzilla.gnome.org/show_bug.cgi?id=725125#c9
parent 58b6b4ef
/* Copyright (C) 2009 The cluttermm Development Team
/* Copyright (C) 2009-2014 The cluttermm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -42,6 +42,8 @@ public:
_WRAP_METHOD(double get_resolution() const, clutter_backend_get_resolution, deprecated "Use Settings's front-dpi property instead.")
_WRAP_METHOD(void set_resolution(double dpi), clutter_backend_set_resolution, deprecated "Use Settings's front-dpi property instead.")
_WRAP_METHOD(static Glib::RefPtr<Backend> get_default_backend(), clutter_get_default_backend, refreturn)
_WRAP_METHOD(guint get_double_click_time() const, clutter_backend_get_double_click_time, deprecated "Use Settings's double-click-time property instead.")
_WRAP_METHOD(void set_double_click_time(guint msec), clutter_backend_set_double_click_time, deprecated "Use Settings's double-click-time property instead.")
......@@ -54,9 +56,12 @@ public:
_WRAP_METHOD(Glib::ustring get_font_name() const, clutter_backend_get_font_name, deprecated "Use Settings's font-name property instead.")
_WRAP_METHOD(void set_font_name(const Glib::ustring& font_name), clutter_backend_set_font_name, deprecated "Use Settings's font-name property instead.")
//We use no_default_handler because the C class struct is hidden.
//Experimental API: clutter_backend_get_cogl_context
//We use no_default_handler because the C class struct is hidden. TODO: Is this still true.
_WRAP_SIGNAL(void font_changed(), "font-changed", no_default_handler)
_WRAP_SIGNAL(void resolution_changed(), "resolution-changed", no_default_handler)
_WRAP_SIGNAL(void settings_changed(), "settings-changed", no_default_handler)
};
} // namespace Clutter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment