[glom/gtkmm4v4] gtkmm4: Adapt to Gnome::Gda::ConnectionFeature as enum class.



commit 0429a357e888e11bb1ab87fa3722c722e7a00bfc
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Apr 28 08:51:25 2017 +0200

    gtkmm4: Adapt to Gnome::Gda::ConnectionFeature as enum class.

 glom/appwindow.cc        |    2 +-
 glom/frame_glom.cc       |    2 +-
 glom/libglom/db_utils.cc |    6 +++---
 glom/libglom/privs.cc    |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/glom/appwindow.cc b/glom/appwindow.cc
index 1680308..20efe25 100644
--- a/glom/appwindow.cc
+++ b/glom/appwindow.cc
@@ -1261,7 +1261,7 @@ void AppWindow::update_userlevel_ui()
     if(ConnectionPool::get_instance_is_ready())
     {
       auto connection = ConnectionPool::get_and_connect();
-      if(connection && 
!connection->get_gda_connection()->supports_feature(Gnome::Gda::CONNECTION_FEATURE_USERS))
+      if(connection && 
!connection->get_gda_connection()->supports_feature(Gnome::Gda::ConnectionFeature::USERS))
         m_action_developer_users->set_enabled(false);
     }
   }
diff --git a/glom/frame_glom.cc b/glom/frame_glom.cc
index a4b56e6..dbbd2f8 100644
--- a/glom/frame_glom.cc
+++ b/glom/frame_glom.cc
@@ -465,7 +465,7 @@ bool Frame_Glom::attempt_change_usermode_to_developer()
   // priviliges to change things in developer mode.
   bool test = true;
 
-  if(sharedconnection && 
sharedconnection->get_gda_connection()->supports_feature(Gnome::Gda::CONNECTION_FEATURE_USERS))
+  if(sharedconnection && 
sharedconnection->get_gda_connection()->supports_feature(Gnome::Gda::ConnectionFeature::USERS))
   {
     test = Privs::get_user_is_in_group(connection_pool->get_user(), GLOM_STANDARD_GROUP_NAME_DEVELOPER);
   }
diff --git a/glom/libglom/db_utils.cc b/glom/libglom/db_utils.cc
index 4556104..e8a79a1 100644
--- a/glom/libglom/db_utils.cc
+++ b/glom/libglom/db_utils.cc
@@ -586,7 +586,7 @@ bool add_standard_groups(const std::shared_ptr<Document>& document)
   }
 
   // If the connection doesn't support users we can skip this step
-  if(gda_connection->supports_feature(Gnome::Gda::CONNECTION_FEATURE_USERS))
+  if(gda_connection->supports_feature(Gnome::Gda::ConnectionFeature::USERS))
   {
     const auto vecGroups = Glom::Privs::get_database_groups();
     if(Utils::find_exists(vecGroups, devgroup)) {
@@ -657,7 +657,7 @@ bool add_groups_from_document(const std::shared_ptr<const Document>& document)
   }
 
   // If the connection doesn't support users we can skip this step
-  if(!(gda_connection->supports_feature(Gnome::Gda::CONNECTION_FEATURE_USERS)))
+  if(!(gda_connection->supports_feature(Gnome::Gda::ConnectionFeature::USERS)))
     return true;
 
   //Get the list of groups from the database server:
@@ -693,7 +693,7 @@ bool set_table_privileges_groups_from_document(const std::shared_ptr<const Docum
   }
 
   // If the connection doesn't support users we can skip this step
-  if(!(gda_connection->supports_feature(Gnome::Gda::CONNECTION_FEATURE_USERS)))
+  if(!(gda_connection->supports_feature(Gnome::Gda::ConnectionFeature::USERS)))
     return true;
 
   //Get the list of groups from the database server:
diff --git a/glom/libglom/privs.cc b/glom/libglom/privs.cc
index 928fbe5..a9238e5 100644
--- a/glom/libglom/privs.cc
+++ b/glom/libglom/privs.cc
@@ -472,7 +472,7 @@ Privileges Privs::get_current_privs(const Glib::ustring& table_name)
   }
   */
   auto sharedconnection = connection_pool->connect();
-  if(sharedconnection && 
sharedconnection->get_gda_connection()->supports_feature(Gnome::Gda::CONNECTION_FEATURE_USERS))
+  if(sharedconnection && 
sharedconnection->get_gda_connection()->supports_feature(Gnome::Gda::ConnectionFeature::USERS))
   {
     //Get the "true" rights for any groups that the user is in:
     const auto groups = get_groups_of_user(current_user);


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