[cluttermm] Backend: Add get_default() and settings_changed signal.



commit a9e37ede492ae0ddd4b8b9c8205239079f684e5b
Author: Ian Martin <martin_id vodafone co nz>
Date:   Thu Apr 10 16:45:53 2014 +0200

    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

 clutter/src/backend.hg |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/clutter/src/backend.hg b/clutter/src/backend.hg
index 46560c0..da99744 100644
--- a/clutter/src/backend.hg
+++ b/clutter/src/backend.hg
@@ -1,4 +1,4 @@
-/* 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]