[gtkmm] Application: Make the create() methods static, like other ones.



commit 3f147091393896838ee8afd3d37585fb473d89c0
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Feb 15 10:39:00 2012 +0100

    Application: Make the create() methods static, like other ones.
    
    * gtk/src/application.hg: Otherwise they cannot be used.

 ChangeLog              |    7 ++++++-
 gtk/src/application.hg |    4 ++--
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f87f949..9cb6371 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-02-15  Murray Cumming  <murrayc murrayc com>
+
+	Application: Make the create() methods static, like other ones.
+
+	* gtk/src/application.hg: Otherwise they cannot be used.
+
 2012-02-14  Josà Alburquerque  <jaalburquerque gmail com>
 
 	Application: Initialize gtkmm early enough for successful construction.
@@ -15,7 +21,6 @@
 	(Application::init_gtkmm): Remove these methods for efficiency.
 
 	Bug #637445.
-	
 
 2012-02-13  Murray Cumming  <murrayc murrayc com>
 
diff --git a/gtk/src/application.hg b/gtk/src/application.hg
index fa44632..648e2f7 100644
--- a/gtk/src/application.hg
+++ b/gtk/src/application.hg
@@ -67,9 +67,9 @@ protected:
   
 public:
 
-  Glib::RefPtr<Application> create(const Glib::ustring& application_id, Gio::ApplicationFlags flags = Gio::APPLICATION_FLAGS_NONE);
+  static Glib::RefPtr<Application> create(const Glib::ustring& application_id, Gio::ApplicationFlags flags = Gio::APPLICATION_FLAGS_NONE);
   
-  Glib::RefPtr<Application> create(int argc, char** argv, const Glib::ustring& application_id, Gio::ApplicationFlags flags = Gio::APPLICATION_FLAGS_NONE);
+  static Glib::RefPtr<Application> create(int argc, char** argv, const Glib::ustring& application_id, Gio::ApplicationFlags flags = Gio::APPLICATION_FLAGS_NONE);
 
 #m4 _CONVERSION(`GList*',`std::vector<Window*>',`Glib::ListHandler<Window*>::list_to_vector($3, Glib::OWNERSHIP_NONE)')
   _WRAP_METHOD(std::vector<Window*> get_windows(), gtk_application_get_windows)



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