Re: Using a TextView as a sort of "Hbox with wrapping"

2014-01-26 Thread James Tappin
Chris, If I interpret what you are trying to do correctly (not necessarily a given), then I would have thought that GtkScrolledWindow (possibly in conjunction with GtkViewport) would be the tool for the job. James On 26 January 2014 14:50, Chris Angelico wrote: > My application has a status

Re: Get column no. of edited cell.

2013-06-02 Thread James Tappin
Another possibility would be to use g_object_set_data to give the renderer a column number, and g_object_get_data in the handler. On 2 June 2013 07:15, dE wrote: > On 06/02/13 00:27, Arnel A. Borja wrote: > >> On Sunday, 02 June, 2013 01:44 AM, dE wrote: >> >>> I've set the "editable" property

Floating point exception in functions called from gtk_main_iteration_do

2013-02-01 Thread James Tappin
I have a clock application written using gtk and cairo in Fortran (via gtk-fortran) that demonstrates many of the features of using gtk & cairo from Fortran. For historical reasons it uses a home-made event loop with a poll for events and a wait. Unfortunately now when using Gtk3.6 and building t

g_timeout handling, is this the best way?

2012-11-20 Thread James Tappin
I have a program that uses a g_timeout loop to control the display of a sequence of plots (produced via plplot), and I need to be able to change the delay between displaying the plots. The method I am using is this: 1. Use g_timeout_add_full to create the timeout, with the GSourceFunc as a

Re: Lack of gtk_application_get_window_by_id function despite of documentation

2012-11-17 Thread James Tappin
On 17 November 2012 16:05, Jakub Kucharski wrote: > I was trying to compile my application and it appears that one documented > function called 'gtk_application_get_window_**by_id' ( > http://developer.gnome.org/**gtk3/stable/GtkApplication.** > html#gtk-application-get-**window-by-id

Re: Examples of ComboBox using an explicit model?

2012-07-31 Thread James Tappin
Thanks to those who send examples on or off list. With the guidance of those I was able to figure out how the different bits fit together and get a working code. James ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.or

Examples of ComboBox using an explicit model?

2012-07-30 Thread James Tappin
I am currently trying to implement combobox cell renderers in the high-level gtk-fortran code. Unfortunately unlike "normal" comboboxes where there is the convenience type of GtkComboBoxText this is not available for cell renderers. I have hunted for examples of a working combobox that uses an exp

g_value_set_instance -- how to use?

2012-07-23 Thread James Tappin
There is very little documentation that I can find explaining how g_value_set_instance is supposed to work. Is the following anywhere near correct? void my_gvalue_setter( const GValue *gv, gpointer val, Gtype type) {

Re: How do I fix the window size?

2012-06-05 Thread James Tappin
On 5 June 2012 12:50, Ferdinand Ramirez wrote: > --- On Tue, 6/5/12, James Tappin wrote: > > > I think the solution is to place the treeview in a gtk_scrolled_window > > rather than using an hbox and an explicit scrollbar. > > The reason for trying out with an explicit

Re: How do I fix the window size?

2012-06-05 Thread James Tappin
On 5 June 2012 11:00, Ferdinand Ramirez wrote: > I have a treeview and a scrollbar which are both within a hbox. The hbox > is within a window. When I expand the treeview, the window resizes itself > to include the whole treeview. > > The biggest problem is when the treeview has more elements tha

Multiple selections in list/treeview widgets and accelerator groups?

2012-06-01 Thread James Tappin
Is it possible that having an accelerator group associated with the top-level window of a hierarchy could prevent multiple selections in a list widget within that window from working? I have an application that is supposed to have multiple selections enabled (gtk_tree_selection_set_mode(selection,

Re: Getting the "busy" cursor to display.

2012-04-11 Thread James Tappin
On 11 April 2012 10:51, James Tappin wrote: > > I'm now really confused -- I've reordered some of the code so that the > set_cursor call precedes putting a message in the status bar. And the > status bar updates but not the cursor. > OK: I think I've figured it.

Re: Getting the "busy" cursor to display.

2012-04-11 Thread James Tappin
On 11 April 2012 09:25, James Tappin wrote: > > > On 11 April 2012 04:36, wrote: > >> On 10 April 2012 18:33, James Tappin wrote: >> > Thanks for the suggestion. Unfortunately in this case it doesn't help. >> (I >> > have also tried gdk_display_fl

Re: Getting the "busy" cursor to display.

2012-04-11 Thread James Tappin
On 11 April 2012 04:36, wrote: > On 10 April 2012 18:33, James Tappin wrote: > > Thanks for the suggestion. Unfortunately in this case it doesn't help. (I > > have also tried gdk_display_flush and gdk_window_flush, but still the > same > > story). > > Here&#

Re: Getting the "busy" cursor to display.

2012-04-10 Thread James Tappin
On 10 April 2012 11:36, Michael Cronenworth wrote: > James Tappin wrote: > > Is there some other call (or calls) I should be making to force the > updates > > to take place? > > I use the following for widget updates during background processing: > >

Re: Getting the "busy" cursor to display.

2012-04-10 Thread James Tappin
On 10 April 2012 10:09, wrote: > On 10 April 2012 16:58, James Tappin wrote: > > call gdk_display_sync(gdk_display_get_default()) > > call gdk_window_set_cursor(draw_window, busy_cursor) > > call gdk_display_sync(gdk_display_get_default()) > > My

Getting the "busy" cursor to display.

2012-04-10 Thread James Tappin
I have a gtk (fortran) application that displays a progress monitor while computing, and I would like to display the busy cursor while the program is reading a large data file. Right now what I have is: To define the busy cursor and GDK window (module [global] variables). draw_window = gtk_wi

An issue with Qt styling and/or threads?

2012-02-17 Thread James Tappin
I have a problem running a Gtk program when using the "Qt" style as supplied via gtk-qt-engine and kde-config-gtk-style. The program is a fairly heavy duty computation that uses openmp for parallel computation and has a gtk progress monitor (which is updated from within a "critical" section so it

Re: how to use hbox?

2011-12-11 Thread James Tappin
2011/12/11 Gary Kline : >        can somebody help me figure out how to pack the buttons >        horizontally, or is is not possible to mix hbox and vbox? It should be as simple as: make the vbox put the various items in it, including the hbox put the increase & decrease buttons in the hbox. Tha

Re: Alignment of markup labels in menu items

2011-11-30 Thread James Tappin
On 30 November 2011 11:31, James Tappin wrote: > there is a problem with alignment: while > a plain text label is correctly centred in the pulldown menu, a markup > label begins at the centre (even if it does not actually include any > markup). I should add, the problem does not man

Alignment of markup labels in menu items

2011-11-30 Thread James Tappin
I'm trying to add the capability to add a label formatted with Pango markup to buttons and menu items in the "high-level" interface to gtk-fortran. While the following is successful in producing subscripts in labels when the markup flag is set, there is a problem with alignment: while a plain text

Re: Cairo, Gtk+, Gdk & GdkPixbuf -- making a pixel-based backing store for vector graphics

2011-06-17 Thread James Tappin
Just to let folks know that the pointers here have given me the lead in that I needed and I've got a working code. (A bit more elegant in the Gtk3 case than Gtk2 but both work). ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.

Re: Cairo, Gtk+, Gdk & GdkPixbuf -- making a pixel-based backing store for vector graphics

2011-06-14 Thread James Tappin
On 14 June 2011 15:00, Stefan Salewski wrote: > On Tue, 2011-06-14 at 14:30 -0600, James Tappin wrote: >> I would like to be able to make a code that draws some (possibly very >> complex) vector graphics, > > A better place for asking may be the cairo mailing list? At l

Cairo, Gtk+, Gdk & GdkPixbuf -- making a pixel-based backing store for vector graphics

2011-06-14 Thread James Tappin
I would like to be able to make a code that draws some (possibly very complex) vector graphics, copies it to an off-screen backing store and then when an expose-event (Gtk2) or draw signal (Gtk3) is received, the backing store is copied to the screen rather than doing a complete redraw of all the v

GdkEvent question (is it a bug?)

2011-05-11 Thread James Tappin
While working on a script to convert the GdkEvent structures to Fortran derived types for the GtkFortran project I came across the following struct _GdkEventClient { GdkEventType type; GdkWindow *window; gint8 send_event; GdkAtom message_type; gushort data_format; union { char b[20

Re: gtk_tree_view_column query.

2011-03-17 Thread James Tappin
On 17 March 2011 15:55, James Tappin wrote: > Hello, >  I'm working on some aspects of gtk-fortran (an interface of GTK+ to > Fortran95/2003), and so need to implement things without using varargs > routines. However I'm getting unexpected behaviours. I don't think the

gtk_tree_view_column query.

2011-03-17 Thread James Tappin
Hello, I'm working on some aspects of gtk-fortran (an interface of GTK+ to Fortran95/2003), and so need to implement things without using varargs routines. However I'm getting unexpected behaviours. I don't think the problem is in the Fortran interface as I can reproduce the errors in C-examples.