G_PARAM_SPEC_VALUE_TYPE() question

2012-05-14 Thread Marc Balmer
Hi I want to set properties of an object using the g_value_set_() functions and to cast my value (which I get from a Lua script, which e.g. does not differentiate between integers and floats) I need to know the type of the property. Ideally something like the following: switch (G_PARAM_SPEC_VALU

Re: GtkTable cells resizing

2012-05-14 Thread Tristan Van Berkom
On Mon, May 14, 2012 at 10:29 PM, James Steward wrote: > On 15/05/12 11:56, Tristan Van Berkom wrote: >> >> Are you using GTK+ 3 ? >> > > Still on GTK+ 2.0. > > >> If so, use GtkGrid instead... possibly just that will fix things for you. >> >> Short of that, if I understand correctly, you have a t

Re: GtkTable cells resizing

2012-05-14 Thread James Steward
On 15/05/12 11:56, Tristan Van Berkom wrote: Are you using GTK+ 3 ? Still on GTK+ 2.0. If so, use GtkGrid instead... possibly just that will fix things for you. Short of that, if I understand correctly, you have a target state/configuration of a GtkTable (or GtkGrid), if you construct the

Re: GtkTable cells resizing

2012-05-14 Thread Tristan Van Berkom
Are you using GTK+ 3 ? If so, use GtkGrid instead... possibly just that will fix things for you. Short of that, if I understand correctly, you have a target state/configuration of a GtkTable (or GtkGrid), if you construct the table in the target configuration from scratch, I take it things work a

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: GRegex regular expression failing to match

2012-05-14 Thread David Nečas
On Mon, May 14, 2012 at 01:36:02PM -0800, Christopher Howard wrote: > Is there anything wrong with the regexp, Sure. Two things. It should be ^/[0-9]+$ not ^/d+$ First, it lacks the backslash to make \d a digit atom. But, second, since \d matches a digit (possibly whatever Unicode m

GRegex regular expression failing to match

2012-05-14 Thread Christopher Howard
I'm trying glib's GRegex functionality for the first time, and apparently I am doing something wrong. I have some code like so: code: GError * error = NULL; GRegex * regex = g_regex_new ("^/(d+)$", 0, 0, &error); if (error != NULL) { // ... } GMatchInfo * match_in

Re: MSAA or UIA

2012-05-14 Thread Michael Cronenworth
Mike wrote: > Unfortunately I couldnt view the whole thread. Your web page ends in > the middle of the conversation, strangely. The web site doesnt have > links to view the whole thread; it's a horrible mailing list reader. Your web browser must be busted. I can view the entire thread by clickin

Re: MSAA or UIA

2012-05-14 Thread Mike
Unfortunately I couldnt view the whole thread. Your web page ends in the middle of the conversation, strangely. The web site doesnt have links to view the whole thread; it's a horrible mailing list reader. It helped though. Thanks. :) I'll try asking M$. On 5/14/2012 1:14 PM, Michael Cron

Re: MSAA or UIA

2012-05-14 Thread Michael Cronenworth
Mike wrote: > Searches on the internet give me nothing. Who knows when/if gtk+ > applications will be accessible using MSAA or UIA? What are the reasons > we're not there yet? Googling for "uia gtk" brought me this up in 30 seconds: http://comments.gmane.org/gmane.comp.gnome.gtk+.devel.general/

MSAA or UIA

2012-05-14 Thread Mike
Searches on the internet give me nothing. Who knows when/if gtk+ applications will be accessible using MSAA or UIA? What are the reasons we're not there yet? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailm

Re: pango or any other way to format text

2012-05-14 Thread Dov Grobgeld
See http://developer.gnome.org/pango/stable/PangoMarkupFormat.html for the syntax for subscripts and superscripts. Regards, Dov On Mon, May 14, 2012 at 3:38 PM, David Nečas wrote: > On Mon, May 14, 2012 at 08:20:26PM +0800, Rudra Banerjee wrote: > > Can anybody please take some time to show me

Re: Event Mask Question

2012-05-14 Thread Chris Sparks
Well I have taken a different approach to my programming given how events changed. I just turn on all events and then my code will determine which event I'll inhibit or not depending on the widget I am building. Seems to be working fine, exception for key_press and key_release. Can't get the

Re: pango or any other way to format text

2012-05-14 Thread David Nečas
On Mon, May 14, 2012 at 08:20:26PM +0800, Rudra Banerjee wrote: > Can anybody please take some time to show me simple way of > implementing pango formatting to get greek letters, subscripts and > superscripts in gtk2+? What do you mean by ‘implementing Pango formatting'? I suppose you are not wri

Re: pango or any other way to format text

2012-05-14 Thread Liam R E Quin
On Mon, 2012-05-14 at 20:20 +0800, Rudra Banerjee wrote: > Can anybody please take some time to show me simple way of > implementing pango formatting to get greek letters, subscripts and > superscripts in gtk2+? > A minimal(complete with headers) example will be very appriciated. Greek is the same

pango or any other way to format text

2012-05-14 Thread Rudra Banerjee
Can anybody please take some time to show me simple way of implementing pango formatting to get greek letters, subscripts and superscripts in gtk2+? A minimal(complete with headers) example will be very appriciated.   -- Rudra JRF; SNBNCBS http://www.bose.res.in/~rudra A bus station is where a