Re: GtkTable cells resizing

2012-05-17 Thread James Steward
On 15/05/12 14:45, Tristan Van Berkom wrote: On Mon, May 14, 2012 at 10:29 PM, James Steward wrote: On 15/05/12 11:56, Tristan Van Berkom wrote: ... perhaps it's worth trying an extra call to gtk_widget_queue_resize() after modifying your table. I'm trying

Re: GtkTable cells resizing

2012-05-14 Thread James Steward
led, which calls gtk_plot_canvas_paint(GTK_PLOT_CANVAS(canvas)); But the table rows seem to expand to the largest canvas and don't seem to take on variable heights. Feel I've been around and around the mulberry bush on this ;-) Regards, James. On Mon, May 14, 2012 at 9:21 PM, James Ste

GtkTable cells resizing

2012-05-14 Thread James Steward
Hi, I have an application with a tabbed view. On two tabs I have a table, one is a 2x2 table, the other a 3x1 table (3 rows). In each cell is a canvas that has a gtk plot. I want to be able to click one of the plots in the 3x1 table and change the canvas size to 2/3 the original, with the o

Re: Trouble with button mask

2012-05-13 Thread James Steward
Stupid question below. Please ignore. James. On 14/05/12 15:47, James Steward wrote: Hi, I've been trying to get a canvas select item event to fire for a gtk_plot_canvas. Upon left clicking inside a plot canvas, I can see that gtk_plot_canvas_button_press(...) gets called, an

Trouble with button mask

2012-05-13 Thread James Steward
Hi, I've been trying to get a canvas select item event to fire for a gtk_plot_canvas. Upon left clicking inside a plot canvas, I can see that gtk_plot_canvas_button_press(...) gets called, and the following lines near the beginning of that function (in the gtkextra lib) cause the function t

Trouble with TreeView

2012-03-21 Thread James Steward
Hi All, I've built a TreeModel by creating a new TreeStore, and populating it with; for (rp = parent; rp; rp = rp->next) { gtk_tree_store_append(store, &iter, NULL); gtk_tree_store_set(store, &iter, 0, rp->number, -1); for (ep = rp->child; ep; ep = ep->ne

Re: misc and a question...

2011-12-28 Thread James Steward
On 29/12/11 11:05, Gary Kline wrote: ... due to people on this list who have been patient and 'splained things ... and who have NOT said: 'go read the man page' --well, nutshell, in ~ 3 weeks, i'm starting to see how gtk works. i just learned that TRUE == 1 and not 0. i haven't used the acce

Re: gtk_tree_view_column_set_cell_data_func gives GTK-CRITICAL error

2011-11-30 Thread James Steward
On 30/11/11 20:04, Tadej Borovšak wrote: Hi. 2011/11/30 James Steward: col = gtk_tree_view_insert_column_with_attributes ( GTK_TREE_VIEW (view), -1, "Title", renderer, "text", i,

gtk_tree_view_column_set_cell_data_func gives GTK-CRITICAL error

2011-11-29 Thread James Steward
Hi, Wanting to display floats with a particular format in a tree view. void render_float(GtkTreeViewColumn *column, GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, gpointer user_data) {

Re: Maximize on Windows 7 seems broken.

2011-05-12 Thread James Steward
On 13/05/2011 8:03 AM, James Steward wrote: On 11/05/2011 8:07 AM, James Steward wrote: Hi, I'm developing on Windows 7, 64 bit, using MinGW/MSYS for familiarity with a Posix type system. I have installed gtk+-bundle_2.22.1-20101227_win32.zip, and building a 32bit app for compatibility

Re: Maximize on Windows 7 seems broken.

2011-05-12 Thread James Steward
On 11/05/2011 8:07 AM, James Steward wrote: Hi, I'm developing on Windows 7, 64 bit, using MinGW/MSYS for familiarity with a Posix type system. I have installed gtk+-bundle_2.22.1-20101227_win32.zip, and building a 32bit app for compatibility. My application calls gtk_window_max

Re: Maximize on Windows 7 seems broken.

2011-05-10 Thread James Steward
On 11/05/2011 8:19 AM, Matteo Landi wrote: On Wed, May 11, 2011 at 12:07 AM, James Steward wrote: Hi, I'm developing on Windows 7, 64 bit, using MinGW/MSYS for familiarity with a Posix type system. I have installed gtk+-bundle_2.22.1-20101227_win32.zip, and building a 32bit ap

Maximize on Windows 7 seems broken.

2011-05-10 Thread James Steward
Hi, I'm developing on Windows 7, 64 bit, using MinGW/MSYS for familiarity with a Posix type system. I have installed gtk+-bundle_2.22.1-20101227_win32.zip, and building a 32bit app for compatibility. My application calls gtk_window_maximize(GTK_WINDOW(window)); but the resulting window is not