Re: Accelerators for GtkNotebook to switch between pages

2018-02-07 Thread Alexander Koeppe
Oh no sorry. It not working. I had just defined the t accelerator in the activate function of the app. If I change it to e.g. b the accelerator doesn't work. Am 07.02.2018 um 23:19 schrieb Alexander Koeppe: > Hi infirit, > > crazy. I rebuilt the relevant parts in a demo app and t

Re: Accelerators for GtkNotebook to switch between pages

2018-02-07 Thread Alexander Koeppe
Hi infirit, crazy. I rebuilt the relevant parts in a demo app and there it's working as expected. *argh*. For completeness here's what I mean. The code that creates my GtkNotebook:   /* notebook */   notebook = gtk_notebook_new();   gtk_notebook_set_tab_pos(GTK_NOTEBOOK(notebook),

Accelerators for GtkNotebook to switch between pages

2018-02-02 Thread Alexander Koeppe
Hi list, I'm looking for a way to switch between the pages of a GtkNotebook using e.g. Left and Right. I searched the documentation from different angels but didn't found a obvious way how to accomplish that. Does somebody have a hint for me pointing into the right direction? Thank you

Re: Pause and resume GtkApplication

2018-01-27 Thread Alexander Koeppe
Hi just FYI: I solved it. The trick was that within the second g_application_run(), the app menu must be attached to the application using gtk_application_set_app_menu() *before* adding the already existing _window_ using gtk_application_add_window() to the application. This way the app-menu is

Re: Pause and resume GtkApplication

2018-01-26 Thread Alexander Koeppe
Thanks to all of you. I try to incorporate all the advisories and hints as best as I can given the constraints underlying. Cheers  -- Alex ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Pause and resume GtkApplication

2018-01-25 Thread Alexander Koeppe
It's not really because of async execution. I just tried various gtk_window functions that trigger the "window-state-change" event. But not all of them provide the desired effect. e.g. gtk_window_maximize() reappears the app-menu. gtk_window_iconfify() not So I wonder what is the default callback

Re: Pause and resume GtkApplication

2018-01-25 Thread Alexander Koeppe
me, > after the reloading's done the program continues to render/display the > new data in the screen. The reloading can be done in a new thread too, > after used you can delete it too. > > On Wed, Jan 24, 2018 at 2:52 AM, Alexander Koeppe > <alexander@koeppe.rocks> wrote: >

Re: Pause and resume GtkApplication

2018-01-23 Thread Alexander Koeppe
("org.gnome.Buildertest", G_APPLICATION_FLAGS_NONE);   g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);   status = g_application_run (G_APPLICATION (app), argc, argv);     return status; } Am 22.01.2018 um 22:09 schrieb Lucky B.C: > Hi, can you show your d

Pause and resume GtkApplication

2018-01-22 Thread Alexander Koeppe
Hi, I have an application where some things need to be setup in the UI, then some low-level routines to be executed using the setup values and then resuming the UI loop for further operation. Since I'm migrating the GTK code from GTK2/3 compatible to GNOME/GTK3, I make use of