[glibmm] Gio::Application::open(file): Fix this.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Gio::Application::open(file): Fix this.
- Date: Fri, 4 Mar 2011 10:16:48 +0000 (UTC)
commit f24141dea2613d211785036f1e7127320c050d71
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Mar 4 11:16:43 2011 +0100
Gio::Application::open(file): Fix this.
* gio/src/application.ccg: There should be one item, not two.
ChangeLog | 6 ++++++
gio/src/application.ccg | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a9a0507..6935ec3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2011-03-04 Murray Cumming <murrayc murrayc com>
+ Gio::Application::open(file): Fix this.
+
+ * gio/src/application.ccg: There should be one item, not two.
+
+2011-03-04 Murray Cumming <murrayc murrayc com>
+
Gio::Application: open(): Added a single-file method overload.
* gio/src/application.[hg|ccg]: Added an open() overload that takes a single
diff --git a/gio/src/application.ccg b/gio/src/application.ccg
index d4297b4..25b0a63 100644
--- a/gio/src/application.ccg
+++ b/gio/src/application.ccg
@@ -197,7 +197,7 @@ void Application::open(const type_vec_files& files, const Glib::ustring& hint)
void Application::open(const Glib::RefPtr<Gio::File>& file, const Glib::ustring& hint)
{
type_vec_files files(1);
- files.push_back(file);
+ files[0] = file;
open(files, hint);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]