diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gio/src/application.ccg | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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 d4297b48..25b0a630 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); } |