Re: Does gtk2 provide a case 'in'-sensitive text search via 'gtk_text_iter_..._search'?

2017-01-26 Thread Eric Cashon via gtk-app-devel-list
I worked on this a little more and tried to make it UTF-8 compliant. Highlighted the text also. It should still be efficient since it is only doing a single pass over each char. I am sure there are things that I haven't considered but it does a little more than the first try at it. https://

Re: watching a file descriptor in gtk3

2017-01-23 Thread Eric Cashon via gtk-app-devel-list
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. Also, if I run valgrind with multiple plots being c

Re: Does gtk2 provide a case 'in'-sensitive text search via 'gtk_text_iter_..._search'?

2017-01-19 Thread Eric Cashon via gtk-app-devel-list
In GTK3 you would have everything that you need. The gtk_text_iter_forward_search() function can use GTK_TEXT_SEARCH_CASE_INSENSITIVE. I don't see that in GTK2. Another thought. The GTK Source View can find words and highlight them for you. You might want to check that out also. It has some s

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

2017-01-14 Thread Eric Cashon via gtk-app-devel-list
Hi Roger, A little while back I was testing something similar with g_spawn_async_with_pipes(). It is neither mission-critical or meticulous but something I was just testing for the possible use with gnuplot. There is a driver.c and a worker.c program. The driver spawns the worker and sets up

Re: gtk_dialog_get_action_area() deprecation

2016-12-31 Thread Eric Cashon via gtk-app-devel-list
Hi Emmanuele, I see the style property "action-area-border" in the documentation for the Dialog. Still learning how to use CSS effectively and am using GTK3.18 currently which has a different CSS syntax than the newer GTK versions. Figure I will still use a few deprecated functions so I do

Re: gtk_dialog_get_action_area() deprecation

2016-12-31 Thread Eric Cashon via gtk-app-devel-list
I like the gtk_dialog_get_action_area() function. It makes it easy to set something like the border width of the container. action_area=gtk_dialog_get_action_area(GTK_DIALOG(dialog)); gtk_container_set_border_width(GTK_CONTAINER(action_area), 20); Maybe no big deal and can be done

Re: deprecated gtk_cairo_create

2016-12-30 Thread Eric Cashon via gtk-app-devel-list
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 a larger area. Eric -Original Mes

Re: Strange 'regression' in gtk+/gstreamer app

2016-12-12 Thread Eric Cashon via gtk-app-devel-list
My guess is that it has something to do with how GTK is drawing. Look at the double buffered reference. https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-set-double-buffered For drawing transparent backgrounds GTK changed something in the drawing code in 3.10. When I was usi

Re: Ideas of new widgets and critics, only for enhance gtk+.

2016-12-11 Thread Eric Cashon via gtk-app-devel-list
You can create your own widgets to look and work like you want with GTK+. There is a good example on the gtkmm tutorial which is worth looking at if you are interested in doing this. It also shows a little on how you can use CSS to set some properties on your new widget. https://developer.gnom

Re: Strange 'regression' in gtk+/gstreamer app

2016-12-09 Thread Eric Cashon via gtk-app-devel-list
It could be a problem with the double buffering. gtk_widget_set_double_buffered() Try to set that to false and see if that makes any difference. This is on Linux? Usually you don't need this function any more and it is deprecated but it can sometimes still be useful. I know to get gnuplot pict

<    1   2