[glom/gtkmm4v4] gtkmm4: tests: Adapt to changed Gtk::Application::create() parameters.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/gtkmm4v4] gtkmm4: tests: Adapt to changed Gtk::Application::create() parameters.
- Date: Sat, 15 Apr 2017 20:40:15 +0000 (UTC)
commit 2eba3adb122714c3f06251061c693ce1c5c197cb
Author: Murray Cumming <murrayc murrayc com>
Date: Sat Apr 15 22:02:32 2017 +0200
gtkmm4: tests: Adapt to changed Gtk::Application::create() parameters.
.../eggspreadtablemm/test_spreadtablednd.cc | 4 ++--
glom/utility_widgets/test_flowtable.cc | 4 ++--
tests/ui/glade_toplevels_instantiation.cc | 2 +-
tests/ui/test_glade_derived_instantiation.cc | 4 ++--
tests/ui/test_imageglom_widget.cc | 4 ++--
5 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/glom/utility_widgets/eggspreadtablemm/test_spreadtablednd.cc
b/glom/utility_widgets/eggspreadtablemm/test_spreadtablednd.cc
index a0715f6..b4b1727 100644
--- a/glom/utility_widgets/eggspreadtablemm/test_spreadtablednd.cc
+++ b/glom/utility_widgets/eggspreadtablemm/test_spreadtablednd.cc
@@ -352,10 +352,10 @@ create_window()
}
int
-main(int argc, char *argv[])
+main()
{
auto app =
- Gtk::Application::create(argc, argv, "org.glom.test_spreadtablednd");
+ Gtk::Application::create("org.glom.test_spreadtablednd");
auto window = create_window();
return app->run(*window);
diff --git a/glom/utility_widgets/test_flowtable.cc b/glom/utility_widgets/test_flowtable.cc
index 2abd30f..06b502e 100644
--- a/glom/utility_widgets/test_flowtable.cc
+++ b/glom/utility_widgets/test_flowtable.cc
@@ -96,10 +96,10 @@ static void clear_flowtable(Glom::FlowTable& flowtable)
}
int
-main(int argc, char* argv[])
+main()
{
auto app =
- Gtk::Application::create(argc, argv, "org.glom.test_flowtable");
+ Gtk::Application::create("org.glom.test_flowtable");
Gtk::Window window;
//Gtk::Box flowtable;
diff --git a/tests/ui/glade_toplevels_instantiation.cc b/tests/ui/glade_toplevels_instantiation.cc
index 3b89c53..671a209 100644
--- a/tests/ui/glade_toplevels_instantiation.cc
+++ b/tests/ui/glade_toplevels_instantiation.cc
@@ -91,7 +91,7 @@ static bool attempt_instantiation(const std::string& filepath, const xmlpp::Elem
int main(int argc, char* argv[])
{
auto app =
- Gtk::Application::create(argc, argv, "org.glom.test_glade_toplevels_instantiation");
+ Gtk::Application::create("org.glom.test_glade_toplevels_instantiation");
Gsv::init(); //Our .glade files contain gtksourceview widgets too.
std::string filepath;
diff --git a/tests/ui/test_glade_derived_instantiation.cc b/tests/ui/test_glade_derived_instantiation.cc
index e690004..228bb48 100644
--- a/tests/ui/test_glade_derived_instantiation.cc
+++ b/tests/ui/test_glade_derived_instantiation.cc
@@ -127,10 +127,10 @@ bool instantiate_widget()
return true;
}
-int main(int argc, char *argv[])
+int main()
{
auto app =
- Gtk::Application::create(argc, argv, "org.glom.test_glade_derived_instantiation");
+ Gtk::Application::create("org.glom.test_glade_derived_instantiation");
Gsv::init(); //Our .glade files contain gtksourceview widgets too.
using namespace Glom;
diff --git a/tests/ui/test_imageglom_widget.cc b/tests/ui/test_imageglom_widget.cc
index 1d50ad0..d739c39 100644
--- a/tests/ui/test_imageglom_widget.cc
+++ b/tests/ui/test_imageglom_widget.cc
@@ -88,10 +88,10 @@ void test_changing_from_jpg_to_pdf_to_jpg()
}
-int main(int argc, char *argv[])
+int main()
{
auto app =
- Gtk::Application::create(argc, argv, "org.glom.test_glade_derived_instantiation");
+ Gtk::Application::create("org.glom.test_glade_derived_instantiation");
test_use_jpg();
test_reset_same_jpg();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]