Re: gtk_init() command-line args

2018-05-16 Thread rbd
, rbd <r...@soest.hawaii.edu> wrote: Can someone point me to an official gtk3 documentation source which clearly lists all of the command-line arguments parsed and then stripped from argv[] by gtk_init()? The "Running and debugging GTK+ Applications" document is the only thing I

gtk_init() command-line args

2018-05-15 Thread rbd
Hi all, Can someone point me to an official gtk3 documentation source which clearly lists all of the command-line arguments parsed and then stripped from argv[] by gtk_init()? I cannot find this information anywhere (although it would not be the first time I missed something right in front

Re: GtkFileChooser problem

2017-10-25 Thread rbd
Hi, i recall having struggled with a file chooser some years ago, but after some iterations got something that worked for me for simple file operations. It was however impossible at that time to tell the file chooser to open a file OR a dir so i ended reinventing the wheel and wrote my own file

Re: GtkFileChooser problem

2017-10-24 Thread rbd
Hi all, I have done some further experimentation with regard to my GtkFileChooser problem and discovered that the piece of my code that seems to be triggering this problem is the call to gtk_file_chooser_set_current_name() -- if I remove that then I do not get the error described in my last

GtkFileChooser problem

2017-10-23 Thread rbd
Hi all, I am having a problem with GtkFileChooser when the chooser action is set to GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER, i.e., I want to allow the user to specify any existing or as-yet-nonexistent directory. The documentation says that use of GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER: "...

Re: gtkdialog maximum size

2017-09-13 Thread rbd
I second Stefan's suggestion of encapsulating your dialog panel within a scrolled window, and in fact I have made it a habit to implement that for every major toplevel window in all of my GUI software. You never know when an app that was designed for a nice fat desktop display will end up

Re: Re-drawing GtkDrawingArea surface on motion-notify-event

2017-03-20 Thread rbd
Hello Marcin, I have written a number of gtk3 apps that perform the type of rubberband line drawing you have described. Although I was originally porting apps from an Xlib drawing environment where XOR was available to do lightning-fast 'undraws' of existing line segments and was skeptical

Re: watching a file descriptor in gtk3

2017-01-23 Thread rbd
Eric (cecas...@aol.com) sent me the following earlier today in response to another discussion thread I started a few days ago re: GSubProcess: I put together a test example of GSubprocess. ... https://github.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/Pipes/gnuplot5.c In an

Re: watching a file descriptor in gtk3

2017-01-23 Thread rbd
, however. Roger On Mon, 23 Jan 2017, Emmanuele Bassi wrote: Hi; On 23 January 2017 at 22:09, rbd <r...@soest.hawaii.edu> wrote: It is not quite that bad. The documentation for g_source_add_unix_fd() is inadequate, but although not immediately obvious the prepare, check and fi

Re: watching a file descriptor in gtk3

2017-01-23 Thread rbd
Thanks for all the further explication, Chris! The problem is that the main loop would enter a busy loop. Well, maybe a 'busy-ish' loop. If you call up g_idle_add() with a repeating callback (one which returns TRUE) which does nothing except examine a non-blocking select(), you will end up

Re: gtk3 and fork/exec of non-gtk child

2017-01-23 Thread rbd
Hi Roger, I put together a test example of GSubprocess. It starts Gnuplot, sets up the pipes and callbacks, and then when Gnuplot is done it opens the graph in an image widget. The GSubprocess will take care of the file descripters for you. ...

Re: watching a file descriptor in gtk3

2017-01-23 Thread rbd
Hi Chris, Thanks very much for all of that information -- it was very helpful! I do not fully understand your question (especially I don't understand your reference to using "g_idle_add_full() and do my own non-blocking select() inside my callback", which would not work), ... I won't be

watching a file descriptor in gtk3

2017-01-22 Thread rbd
Hi all, I need to monitor a Unix file descriptor for input within my gtk3 program. I believe that I need to somehow be using g_source_add_unix_fd() and friends but am finding the documentation confusing. Are there any simple examples which show how to do this anywhere? (I looked but could

Re: gtk3 and fork/exec of non-gtk child

2017-01-14 Thread rbd
Thanks much for the suggestions and code pointer, Eric! I get the drift that GSubProcess is a more recent package layered over g_spawn. It consequently seems to have more features but less 3rd-party documentation outside the reference manual. Roger On Sat, 14 Jan 2017, cecas...@aol.com

Re: gtk3 and fork/exec of non-gtk child

2017-01-14 Thread rbd
Hi Emmanuele, On closer reading there are some details of GSubProcess implementation and usage that are unclear to me. I have not been able to find anything resembling a tutorial anywhere, if you are aware of anything useful other than the base GSubProcess reference manual page please

Re: gtk3 and fork/exec of non-gtk child

2017-01-14 Thread rbd
en descriptors and making them close-on-exec like gtk's. Thanks so much for your help! Roger On Sat, 14 Jan 2017, Emmanuele Bassi wrote: Hi; On 14 January 2017 at 16:24, rbd <r...@soest.hawaii.edu> wrote: However, I am still curious as to whether the fork/exec/SIGCHLDhandler m

Re: gtk3 and fork/exec of non-gtk child

2017-01-14 Thread rbd
, instead, which is a much better API, it's safe, and it's likely more comprehensive in handling additional cases. Ciao,  Emmanuele. On Sat, 14 Jan 2017 at 01:30, rbd <r...@soest.hawaii.edu> wrote: Hi all, I have a few questions relating to the use of fork/exec within a

gtk3 and fork/exec of non-gtk child

2017-01-13 Thread rbd
Hi all, I have a few questions relating to the use of fork/exec within a gtk3 program. Briefly, (i) can this be made to work at all, and (ii) should I perform any specific operations related to disconnecting from gtk within the child process code of my gtk parent in the very brief interval

Re: deprecated gtk_cairo_create

2016-12-30 Thread rbd
On Fri, 30 Dec 2016, cecas...@aol.com wrote: Hi Roger, Would this be similar to using a GtkLayout and a GtkDrawingArea? If you add a drawing area to a layout you get draw scrolling and the layout can update the part of the drawing area shown on the screen even though the drawing might be on

Re: deprecated gtk_cairo_create

2016-12-30 Thread rbd
Hello Sergei, Unfortunately the use of the gtk3 DrawingArea is a bit obscure and difficult to figure out. However, I have been able to make use of it very effectively in conjunction with Cairo drawing ops. For various reasons I have created a GUI toolkit library which lies between my app

GTK+3 CSS style function questions

2016-05-19 Thread rbd
Hi all, My GTK+3 app includes several GtkButton widgets which I am setting to specific background and foreground (i.e., label) colors. Furthermore, the colors of each of these buttons are changed over time in response to user activity. My current code seems to work OK but I have a few

GtkColorChooser questions

2016-04-14 Thread rbd
Hi all, I am trying to use the GtkColorChooserDialog (3.14 under CentOS7 and also 3.18 under MacOS/MacPorts) and have two questions: (1) My app will potentially do a substantial amount of custom color creation. Every time I make a new custom color with GtkColorChooserDialog, the next time