Re: How does one get the screen coordinates of the workspace?

2015-12-29 Thread Rick Berger
workSpace; gdk_screen_get_monitor_workarea(gdk_screen_get_default(), 0, &workSpace); Rick On 15-12-29 05:26 PM, Rick Berger wrote: I'm looking for to get the screen coordinates, height and width of the workspace on Ubuntu's desktop. The only way I see to doing this, is in starting the app: maximize its w

How does one get the screen coordinates of the workspace?

2015-12-29 Thread Rick Berger
I'm looking for to get the screen coordinates, height and width of the workspace on Ubuntu's desktop. The only way I see to doing this, is in starting the app: maximize its window; get the workspace info from its window's coordinates and dimensions; then un-maximize its window. I believe these

have a GtkWindow default to always being on the visible workspace

2015-10-17 Thread Rick Berger
How can you have a GtkWindow itself default to always being on the visible workspace in Ubuntu? Rick ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

what is the preferred way to wait while polling a flag

2012-05-17 Thread Rick Berger
In GTK+ 2.20, what is the preferred way to wait while polling a flag in shared memory every 25 milliseconds in code something like this? gint n; for( n=10; n && (sharedMemory->flag != 1), n--) { /* wait 25 milliseconds */ } if( n == 0 ) { g_warning("Timed out while waiting for flag"); ret