[glom/gtkmm4v4] gtkmm4: Adapt to File::CreateFlags enum in class.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/gtkmm4v4] gtkmm4: Adapt to File::CreateFlags enum in class.
- Date: Thu, 20 Apr 2017 08:56:08 +0000 (UTC)
commit 82e392708bc23c4a6820349859b80530ca906f41
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Apr 18 18:03:41 2017 +0200
gtkmm4: Adapt to File::CreateFlags enum in class.
glom/application.cc | 6 +++---
glom/libglom/connectionpool_backends/mysql.cc | 6 +++---
glom/libglom/connectionpool_backends/postgres.cc | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/glom/application.cc b/glom/application.cc
index 97bab39..90ceb8c 100644
--- a/glom/application.cc
+++ b/glom/application.cc
@@ -30,11 +30,11 @@
namespace Glom
{
-// We use Gio::ApplicationFlags::NON_UNIQUE because we have some singletons and other static data,
+// We use Gio::Application::Flags::NON_UNIQUE because we have some singletons and other static data,
// to simplify our code.
// We also want to prevent all instances from crashing when one instance crashes.
Application::Application()
-: Gtk::Application("org.glom.Glom", Gio::ApplicationFlags::HANDLES_OPEN |
Gio::ApplicationFlags::HANDLES_COMMAND_LINE | Gio::ApplicationFlags::NON_UNIQUE)
+: Gtk::Application("org.glom.Glom", Gio::Application::Flags::HANDLES_OPEN |
Gio::Application::Flags::HANDLES_COMMAND_LINE | Gio::Application::Flags::NON_UNIQUE)
{
}
@@ -146,7 +146,7 @@ int Application::on_command_line(const Glib::RefPtr<Gio::ApplicationCommandLine>
//Note that these options should really be parsed in main(),
//but we do it here because of glib bug: https://bugzilla.gnome.org/show_bug.cgi?id=634990#c6
- //Handling the two groups together here is possible due to our use of Gio::ApplicationFlags::NON_UNIQUE .
+ //Handling the two groups together here is possible due to our use of Gio::Application::Flags::NON_UNIQUE .
LocalOptionGroup local_group;
context.add_group(local_group);
diff --git a/glom/libglom/connectionpool_backends/mysql.cc b/glom/libglom/connectionpool_backends/mysql.cc
index 68d5168..f797ec4 100644
--- a/glom/libglom/connectionpool_backends/mysql.cc
+++ b/glom/libglom/connectionpool_backends/mysql.cc
@@ -774,7 +774,7 @@ bool MySQL::create_text_file(const std::string& file_uri, const std::string& con
{
if(current_user_only)
{
- stream = file->replace(std::string() /* etag */, false /* make_backup */,
Gio::FileCreateFlags::PRIVATE); //Instead of append_to().
+ stream = file->replace(std::string() /* etag */, false /* make_backup */,
Gio::File::CreateFlags::PRIVATE); //Instead of append_to().
}
else
{
@@ -783,11 +783,11 @@ bool MySQL::create_text_file(const std::string& file_uri, const std::string& con
}
else
{
- //By default files created are generally readable by everyone, but if we pass FileCreateFlags::PRIVATE
in flags the file will be made readable only to the current user, to the level that is supported on the
target filesystem.
+ //By default files created are generally readable by everyone, but if we pass
File::CreateFlags::PRIVATE in flags the file will be made readable only to the current user, to the level
that is supported on the target filesystem.
if(current_user_only)
{
//TODO: Do we want to specify 0660 exactly? (means "this user and his group can read and write this
non-executable file".)
- stream = file->create_file(Gio::FileCreateFlags::PRIVATE);
+ stream = file->create_file(Gio::File::CreateFlags::PRIVATE);
}
else
{
diff --git a/glom/libglom/connectionpool_backends/postgres.cc
b/glom/libglom/connectionpool_backends/postgres.cc
index a4a095d..f51526f 100644
--- a/glom/libglom/connectionpool_backends/postgres.cc
+++ b/glom/libglom/connectionpool_backends/postgres.cc
@@ -878,7 +878,7 @@ bool Postgres::create_text_file(const std::string& file_uri, const std::string&
{
if(current_user_only)
{
- stream = file->replace(std::string() /* etag */, false /* make_backup */,
Gio::FileCreateFlags::PRIVATE); //Instead of append_to().
+ stream = file->replace(std::string() /* etag */, false /* make_backup */,
Gio::File::CreateFlags::PRIVATE); //Instead of append_to().
}
else
{
@@ -887,11 +887,11 @@ bool Postgres::create_text_file(const std::string& file_uri, const std::string&
}
else
{
- //By default files created are generally readable by everyone, but if we pass FileCreateFlags::PRIVATE
in flags the file will be made readable only to the current user, to the level that is supported on the
target filesystem.
+ //By default files created are generally readable by everyone, but if we pass
File::CreateFlags::PRIVATE in flags the file will be made readable only to the current user, to the level
that is supported on the target filesystem.
if(current_user_only)
{
//TODO: Do we want to specify 0660 exactly? (means "this user and his group can read and write this
non-executable file".)
- stream = file->create_file(Gio::FileCreateFlags::PRIVATE);
+ stream = file->create_file(Gio::File::CreateFlags::PRIVATE);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]