[gtkmm-documentation] Adapt to enums in classes: Gio::Application::Flags.



commit fb0532b9efad2f38ce73b9728551113c8e995785
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Apr 18 15:14:46 2017 +0200

    Adapt to enums in classes: Gio::Application::Flags.

 .../command_line_handling/exampleapplication.cc    |    2 +-
 .../book/application/simple/exampleapplication.cc  |    2 +-
 examples/book/box/main.cc                          |   12 ++++++------
 examples/book/buildapp/step1/exampleapplication.cc |    2 +-
 examples/book/buildapp/step2/exampleapplication.cc |    2 +-
 examples/book/buildapp/step4/exampleapplication.cc |    2 +-
 examples/book/buildapp/step5/exampleapplication.cc |    2 +-
 examples/book/clipboard/ideal/main.cc              |    4 ++--
 examples/book/clipboard/simple/main.cc             |    4 ++--
 9 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/examples/book/application/command_line_handling/exampleapplication.cc 
b/examples/book/application/command_line_handling/exampleapplication.cc
index 142d149..29a0944 100644
--- a/examples/book/application/command_line_handling/exampleapplication.cc
+++ b/examples/book/application/command_line_handling/exampleapplication.cc
@@ -20,7 +20,7 @@
 
 ExampleApplication::ExampleApplication()
 : Gtk::Application("org.gtkmm.examples.application",
-    Gio::ApplicationFlags(Gio::ApplicationFlags::HANDLES_OPEN | Gio::ApplicationFlags::HANDLES_COMMAND_LINE))
+    Gio::Application::Flags(Gio::Application::Flags::HANDLES_OPEN | 
Gio::Application::Flags::HANDLES_COMMAND_LINE))
 {
   Glib::set_application_name("Gtk::Application Example");
 
diff --git a/examples/book/application/simple/exampleapplication.cc 
b/examples/book/application/simple/exampleapplication.cc
index 71fb884..8661876 100644
--- a/examples/book/application/simple/exampleapplication.cc
+++ b/examples/book/application/simple/exampleapplication.cc
@@ -19,7 +19,7 @@
 #include <iostream>
 
 ExampleApplication::ExampleApplication()
-: Gtk::Application("org.gtkmm.examples.application", Gio::ApplicationFlags::HANDLES_OPEN)
+: Gtk::Application("org.gtkmm.examples.application", Gio::Application::Flags::HANDLES_OPEN)
 {
   Glib::set_application_name("Gtk::Application Example");
 }
diff --git a/examples/book/box/main.cc b/examples/book/box/main.cc
index 17080ae..1d6e195 100644
--- a/examples/book/box/main.cc
+++ b/examples/book/box/main.cc
@@ -51,24 +51,24 @@ int main(int argc, char *argv[])
   int argc1 = argc;
 
 #if GTK_APPLICATION_RECEIVES_COMMAND_LINE_ARGUMENTS
-  // The Gio::ApplicationFlags::HANDLES_COMMAND_LINE flag and the
+  // The Gio::Application::Flags::HANDLES_COMMAND_LINE flag and the
   // on_command_line() signal handler are not necessary. This program is simpler
   // without them, and with argc = 1 in the call to Gtk::Application::run().
-  // They are included to show a program with Gio::ApplicationFlags::HANDLES_COMMAND_LINE.
-  // Gio::ApplicationFlags::NON_UNIQUE makes it possible to run several instances of
+  // They are included to show a program with Gio::Application::Flags::HANDLES_COMMAND_LINE.
+  // Gio::Application::Flags::NON_UNIQUE makes it possible to run several instances of
   // this application simultaneously.
   auto app = Gtk::Application::create(
-    "org.gtkmm.example", Gio::ApplicationFlags::HANDLES_COMMAND_LINE | Gio::ApplicationFlags::NON_UNIQUE);
+    "org.gtkmm.example", Gio::Application::Flags::HANDLES_COMMAND_LINE | 
Gio::Application::Flags::NON_UNIQUE);
 
   // Note after = false.
   // Only one signal handler is invoked. This signal handler must run before
   // the default signal handler, or else it won't run at all.
   app->signal_command_line().connect(sigc::bind(sigc::ptr_fun(&on_command_line), app), false);
 #else
-  // Gio::ApplicationFlags::NON_UNIQUE makes it possible to run several instances of
+  // Gio::Application::Flags::NON_UNIQUE makes it possible to run several instances of
   // this application simultaneously.
   argc1 = 1; // Don't give the command line arguments to Gtk::Application.
-  auto app = Gtk::Application::create("org.gtkmm.example", Gio::ApplicationFlags::NON_UNIQUE);
+  auto app = Gtk::Application::create("org.gtkmm.example", Gio::Application::Flags::NON_UNIQUE);
 #endif
 
   ExampleWindow window(std::atoi(argv[1]));
diff --git a/examples/book/buildapp/step1/exampleapplication.cc 
b/examples/book/buildapp/step1/exampleapplication.cc
index 357481c..c68b209 100644
--- a/examples/book/buildapp/step1/exampleapplication.cc
+++ b/examples/book/buildapp/step1/exampleapplication.cc
@@ -17,7 +17,7 @@
 #include "exampleappwindow.h"
 
 ExampleApplication::ExampleApplication()
-: Gtk::Application("org.gtkmm.examples.application", Gio::ApplicationFlags::HANDLES_OPEN)
+: Gtk::Application("org.gtkmm.examples.application", Gio::Application::Flags::HANDLES_OPEN)
 {
 }
 
diff --git a/examples/book/buildapp/step2/exampleapplication.cc 
b/examples/book/buildapp/step2/exampleapplication.cc
index e57ff38..fa1cc0c 100644
--- a/examples/book/buildapp/step2/exampleapplication.cc
+++ b/examples/book/buildapp/step2/exampleapplication.cc
@@ -19,7 +19,7 @@
 #include <exception>
 
 ExampleApplication::ExampleApplication()
-: Gtk::Application("org.gtkmm.examples.application", Gio::ApplicationFlags::HANDLES_OPEN)
+: Gtk::Application("org.gtkmm.examples.application", Gio::Application::Flags::HANDLES_OPEN)
 {
 }
 
diff --git a/examples/book/buildapp/step4/exampleapplication.cc 
b/examples/book/buildapp/step4/exampleapplication.cc
index 51939cb..d890acd 100644
--- a/examples/book/buildapp/step4/exampleapplication.cc
+++ b/examples/book/buildapp/step4/exampleapplication.cc
@@ -19,7 +19,7 @@
 #include <exception>
 
 ExampleApplication::ExampleApplication()
-: Gtk::Application("org.gtkmm.examples.application", Gio::ApplicationFlags::HANDLES_OPEN)
+: Gtk::Application("org.gtkmm.examples.application", Gio::Application::Flags::HANDLES_OPEN)
 {
 }
 
diff --git a/examples/book/buildapp/step5/exampleapplication.cc 
b/examples/book/buildapp/step5/exampleapplication.cc
index be96e66..f729f03 100644
--- a/examples/book/buildapp/step5/exampleapplication.cc
+++ b/examples/book/buildapp/step5/exampleapplication.cc
@@ -20,7 +20,7 @@
 #include <exception>
 
 ExampleApplication::ExampleApplication()
-: Gtk::Application("org.gtkmm.examples.application", Gio::ApplicationFlags::HANDLES_OPEN)
+: Gtk::Application("org.gtkmm.examples.application", Gio::Application::Flags::HANDLES_OPEN)
 {
 }
 
diff --git a/examples/book/clipboard/ideal/main.cc b/examples/book/clipboard/ideal/main.cc
index de79e5e..2b01891 100644
--- a/examples/book/clipboard/ideal/main.cc
+++ b/examples/book/clipboard/ideal/main.cc
@@ -19,10 +19,10 @@
 
 int main(int argc, char *argv[])
 {
-  // Gio::ApplicationFlags::NON_UNIQUE because it shall be possible to run
+  // Gio::Application::Flags::NON_UNIQUE because it shall be possible to run
   // several instances of this application simultaneously.
   auto app = Gtk::Application::create(
-    "org.gtkmm.example", Gio::ApplicationFlags::NON_UNIQUE);
+    "org.gtkmm.example", Gio::Application::Flags::NON_UNIQUE);
 
   ExampleWindow window;
 
diff --git a/examples/book/clipboard/simple/main.cc b/examples/book/clipboard/simple/main.cc
index de79e5e..2b01891 100644
--- a/examples/book/clipboard/simple/main.cc
+++ b/examples/book/clipboard/simple/main.cc
@@ -19,10 +19,10 @@
 
 int main(int argc, char *argv[])
 {
-  // Gio::ApplicationFlags::NON_UNIQUE because it shall be possible to run
+  // Gio::Application::Flags::NON_UNIQUE because it shall be possible to run
   // several instances of this application simultaneously.
   auto app = Gtk::Application::create(
-    "org.gtkmm.example", Gio::ApplicationFlags::NON_UNIQUE);
+    "org.gtkmm.example", Gio::Application::Flags::NON_UNIQUE);
 
   ExampleWindow window;
 


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