From f33573daecde71397be36432fec025231d4a22cb Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Fri, 3 Aug 2018 01:41:34 +0200 Subject: [PATCH] UI-Lifecycle: note down reference point for this task in Gtk::Application Gio::Application holds a signal_activation(), which seems to be used for precisely that task we need here: to do something right after the UI is operative --- wiki/thinkPad.ichthyo.mm | 91 ++++++++++++++++++++++++++-------------- 1 file changed, 59 insertions(+), 32 deletions(-) diff --git a/wiki/thinkPad.ichthyo.mm b/wiki/thinkPad.ichthyo.mm index e203c8415..eee8801aa 100644 --- a/wiki/thinkPad.ichthyo.mm +++ b/wiki/thinkPad.ichthyo.mm @@ -13481,7 +13481,7 @@ - + @@ -15880,7 +15880,7 @@ - + @@ -15933,51 +15933,71 @@ sondern Sachen wie verallgemeinerte "Files", D-Bus-Connection etc etc

- -
+
- - - - - - + + - - + + +

- will sagen, +   //We cannot add and show the window until the GApplication::activate signal

- ich gebe mir jetzt nicht mal mehr die Mühe, +   //has been emitted, or we will crash because the application has not been

- meine erratene Lösung zu verifizieren. -

-

- -

-

- Sie erscheint mir einfach so absolut offensichtlich, -

-

- daß es keine weitere Mühe lohnt. -

-

- Glib::Dispatcher ist genau das richtige Ding für diesen Zweck +   //registered. (At least if window is an ApplicationWindow.)

- -
+ + + + + + + + + + +
+ + + + + + +

+ The signal_activate() signal is emitted on the primary instance +

+

+ when an activation occurs. See g_application_activate(). +

+ +
+ + + + + + + +

+ g_application_activate() +

+ +
+
@@ -16273,11 +16293,18 @@ - - + + - + + + + + + + +