Re: Pause and resume GtkApplication

2018-01-25 Thread Lucky B.C
Well, in the case, I will tell something about me, first I've never used the GtkApplication just main window maybe sub windows (dialogs) too, and my programs did not do as what you are trying to do. Second I'm a C programmer, in my opinion, you should redesign your app because sometimes we must do

Re: Pause and resume GtkApplication

2018-01-25 Thread Joël Krähemann
Well, do a context menu and forget about it. In opensuse it is a special package you install for Gnome3 :/ On Fri, Jan 26, 2018 at 12:30 AM, Alexander Koeppe wrote: > It's not really because of async execution. > I just tried various gtk_window functions that trigger the > "window-state-change" e

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 Joël Krähemann
Hi Just some explanation. Your timeout is is dispatched by gtk_main(). As doing your call to the backend, you have to listen on message and then forward the event to the UI. AgsAudio::set-pads() actually is part of my backend. Sends the message. Here you need some async non-blocking call to your

Re: Pause and resume GtkApplication

2018-01-25 Thread Joël Krähemann
Hi, Well there was some redundant code. This actually fixes it: http://git.savannah.nongnu.org/cgit/gsequencer.git/tree/ags/X/file/ags_simple_file.c?h=1.5.x#n1904 Bests, Joël On Thu, Jan 25, 2018 at 11:16 PM, Joël Krähemann wrote: > Hi, > You do some async work? Read about: > > g_timeout_add_

Re: Pause and resume GtkApplication

2018-01-25 Thread Joël Krähemann
Hi, You do some async work? Read about: g_timeout_add_full(); and g_main_context_iteration(); You, can callback the to the UI forwarded event. I do something similar as reading a file from a different thread: http://git.savannah.nongnu.org/cgit/gsequencer.git/tree/ags/X/file/ags_simple_file.c?

Re: Pause and resume GtkApplication

2018-01-25 Thread Alexander Koeppe
Thanks Lucky, Good idea to create the widget right away and hide it until it's time. However, just by accident, I got back the app-menu in the window. Try this with the code below: 1. After I selected "Restart" simulating the pause and resume, the app-menu disappeared. 2. Then I double-clicked

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Eric Cashon via gtk-app-devel-list
Hi Kian, A list box is more flexible for allowing different widgets but the performance might not be so good if you have a lot of rows. Don't have the numbers to show that though. You can put your individual widgets into a scrolled window if you want. The scroll bars will show if the conte

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Yuri Khan
On Thu, Jan 25, 2018 at 4:40 PM, Kian Karas wrote: >> Part Number 71-00 >> Version47.11D >> Build Number kk-5910 >> NATID 8988 1697 >> 0013 > > If a row is to span multiple lines, it might improve read

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Kian Karas
On Thu, Jan 25, 2018 at 10:13 AM, Yuri Khan wrote: > On Thu, Jan 25, 2018 at 3:18 PM, Kian Karas > wrote: > > > It's an industrial device with a 4.5" screen. The only input method is a > > keypad. The keypad has up/down/left/right/enter/back buttons (and some > other > > domain specific keys). T

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Kian Karas
On Thu, Jan 25, 2018 at 10:13 AM, Yuri Khan wrote: > On Thu, Jan 25, 2018 at 3:18 PM, Kian Karas > wrote: > > > It's an industrial device with a 4.5" screen. The only input method is a > > keypad. The keypad has up/down/left/right/enter/back buttons (and some > other > > domain specific keys). T

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Yuri Khan
On Thu, Jan 25, 2018 at 3:18 PM, Kian Karas wrote: > It's an industrial device with a 4.5" screen. The only input method is a > keypad. The keypad has up/down/left/right/enter/back buttons (and some other > domain specific keys). The before mentioned keys are used to navigate a menu > system. > >

Re: Scrolling a GtkTreeview cell

2018-01-25 Thread Kian Karas
You're right, I tried to keep the information level low in case there was an actual solution to what I hoped was possible. In lack of that, here is a more thorough description of the problem domain. It's an industrial device with a 4.5" screen. The only input method is a keypad. The keypad has up/