[gtkmm] Application: Constructor: Receive argc and argv params by reference.
- From: Josà Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Application: Constructor: Receive argc and argv params by reference.
- Date: Fri, 17 Feb 2012 17:34:55 +0000 (UTC)
commit 1b6c565ce03e55ef719ee4857e1325dcfdc50949
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date: Thu Feb 16 17:25:33 2012 -0500
Application: Constructor: Receive argc and argv params by reference.
* gtk/src/application.{ccg, hg}: Have the constructor and create()
method taking argc and argv parameters receive them by reference so
that if gtk_init() modifies them, it is reflected in the calling
function.
Bug #637445.
ChangeLog | 11 +++++++++++
gtk/src/application.ccg | 4 ++--
gtk/src/application.hg | 4 ++--
3 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 343bb9f..0cf5200 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2012-02-16 Josà Alburquerque <jaalburquerque gmail com>
+
+ Application: Constructor: Receive argc and argv params by reference.
+
+ * gtk/src/application.{ccg, hg}: Have the constructor and create()
+ method taking argc and argv parameters receive them by reference so
+ that if gtk_init() modifies them, it is reflected in the calling
+ function.
+
+ Bug #637445.
+
2012-02-16 Kjell Ahlstedt <kjell ahlstedt bredband net>
Update .gitignore.
diff --git a/gtk/src/application.ccg b/gtk/src/application.ccg
index 8f67247..6a76224 100644
--- a/gtk/src/application.ccg
+++ b/gtk/src/application.ccg
@@ -77,7 +77,7 @@ Application::Application(const Glib::ustring& application_id, Gio::ApplicationFl
{
}
-Application::Application(int argc, char** argv, const Glib::ustring& application_id, Gio::ApplicationFlags flags)
+Application::Application(int& argc, char**& argv, const Glib::ustring& application_id, Gio::ApplicationFlags flags)
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
Glib::ObjectBase(0),
@@ -94,7 +94,7 @@ Glib::RefPtr<Application> Application::create(const Glib::ustring& application_i
return Glib::RefPtr<Application>( new Application(application_id, flags) );
}
-Glib::RefPtr<Application> Application::create(int argc, char** argv, const Glib::ustring& application_id, Gio::ApplicationFlags flags)
+Glib::RefPtr<Application> Application::create(int& argc, char**& argv, const Glib::ustring& application_id, Gio::ApplicationFlags flags)
{
return Glib::RefPtr<Application>( new Application(argc, argv, application_id, flags) );
}
diff --git a/gtk/src/application.hg b/gtk/src/application.hg
index 648e2f7..eb5e055 100644
--- a/gtk/src/application.hg
+++ b/gtk/src/application.hg
@@ -63,13 +63,13 @@ protected:
* @param application_id A valid application id
* @param flags The application flags
*/
- explicit Application(int argc, char** argv, const Glib::ustring& application_id, Gio::ApplicationFlags flags = Gio::APPLICATION_FLAGS_NONE);
+ explicit Application(int& argc, char**& argv, const Glib::ustring& application_id, Gio::ApplicationFlags flags = Gio::APPLICATION_FLAGS_NONE);
public:
static Glib::RefPtr<Application> create(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);
+ 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]