Re: charset issue on Windows help needed

2014-09-17 Thread Geert Janssens
(Second attempt. The previous one got truncated). On Tuesday 16 September 2014 21:19:51 Fernando Rodriguez wrote: > Sorry for taking so long, I've been struggling with something of my > own. Did you ever get this sorted? > > I'm not sure what's wrong. Are you running gdb from the console in > win

Re: charset issue on Windows help needed

2014-09-17 Thread Geert Janssens
This is the second time I sent a mail to this list that got truncated. Is it truncated for others as well ? Perhaps the list software is choking on the wide characters ? Are there some mail settings I should take into account ? Geert ___ gtk-app-deve

Re: charset issue on Windows help needed

2014-09-17 Thread Geert Janssens
On Tuesday 16 September 2014 21:19:51 Fernando Rodriguez wrote: > On Tuesday 16 September 2014 6:56:11 PM Geert Janssens wrote: > > On Saturday 13 September 2014 14:24:35 Fernando Rodriguez wrote: > > > On Saturday 13 September 2014 4:21:18 PM Geert Janssens wrote: &g

Re: charset issue on Windows help needed

2014-09-16 Thread Geert Janssens
On Saturday 13 September 2014 14:24:35 Fernando Rodriguez wrote: > On Saturday 13 September 2014 4:21:18 PM Geert Janssens wrote: > > Thanks a lot ! > > > > I'll try to apply a similar approach in gnucash for the > > home dir use case. > > > > For

Re: charset issue on Windows help needed

2014-09-16 Thread Geert Janssens
On Saturday 13 September 2014 14:38:39 Fernando Rodriguez wrote: > On Saturday 13 September 2014 10:37:27 AM Geert Janssens wrote: > > On Wednesday 10 September 2014 21:25:30 Fernando Rodriguez wrote: > > On Wednesday 10 September 2014 5:07:03 PM Fernando Rodriguez > > wrot

Re: charset issue on Windows help needed

2014-09-13 Thread Geert Janssens
Thanks a lot ! I'll try to apply a similar approach in gnucash for the home dir use case. For my second case, anybody know how to read an environment variable directly in win32 using wide char functions ? Geert ___ gtk-app-devel-list mailing list g

Re: charset issue on Windows help needed

2014-09-13 Thread Geert Janssens
t; > use > > 'wide char' win32 API functions which all return UTF-16 encoded > > strings, then convert to UTF-8 (with g_utf16_to_utf8()). > > > > On 09/11/2014 03:25 AM, Fernando Rodriguez wrote: > > > On Wednesday 10 September 2014 5:07:03 PM Fernando Ro

Re: charset issue on Windows help needed

2014-09-13 Thread Geert Janssens
om the value of g_get_home_dir. This as well returns the wrong result. Geert > On 09/11/2014 03:25 AM, Fernando Rodriguez wrote: > > On Wednesday 10 September 2014 5:07:03 PM Fernando Rodriguez wrote: > >> On Wednesday 10 September 2014 7:37:28 PM Geert Janssens wrote: > >

Re: charset issue on Windows help needed

2014-09-13 Thread Geert Janssens
On Wednesday 10 September 2014 21:25:30 Fernando Rodriguez wrote: > On Wednesday 10 September 2014 5:07:03 PM Fernando Rodriguez wrote: > > On Wednesday 10 September 2014 7:37:28 PM Geert Janssens wrote: > > > Hi, > > > > > > I'm stuck on the follo

charset issue on Windows help needed

2014-09-10 Thread Geert Janssens
Hi, I'm stuck on the following issue. Program is GnuCash on Windows. Consider the following code snippet: struct stat statbuf; gchar* dirname = g_strdup(g_getenv("GNC_DOTGNUCASH_DIR"); gint rc = g_stat (dirname, &statbuf); switch (errno) { case ENOENT: // Directory doesn't exist // He

Re: GSettings on Windows

2013-10-03 Thread Geert Janssens
On Monday 30 September 2013 16:30:11 Geert Janssens wrote: > I'm working on converting GnuCash from using GConf to GSettings. > > I'm currently at a point that the code doesn't call GConf anymore. The > keys and paths still contain underscores instead of dashes, b

GSettings on Windows

2013-09-30 Thread Geert Janssens
I'm working on converting GnuCash from using GConf to GSettings. I'm currently at a point that the code doesn't call GConf anymore. The keys and paths still contain underscores instead of dashes, because on linux I'm still testing with gconf as gsettings backend. On linux this works fine. So

Store GtkRadioButtonGroup "value" in GSettings

2013-09-13 Thread Geert Janssens
I'm in the process of converting GnuCash from GConf to GSettings. I found the g_settings_bind to be an invaluable convenience function to bind checkboxes, spinbuttons and entries to gsettings values. This function has reduced a lot of our Gconf glue code. I am looking at doing something simil

Re: GSettings child schemas

2013-03-12 Thread Geert Janssens
Nobody can tell me why or when to use child schemas for accessing keys instead of simply using full schema id's ? How odd... Geert Op 01-03-13 13:55, Geert Janssens schreef: Hi Osmo, Thank you for your reply and reference to how you use GSettings. It is a nice example of how you ca

Re: GSettings child schemas

2013-03-01 Thread Geert Janssens
ckend. But that's behind the curtains. Bom fim de semana. Osmo Antero On Fri, Mar 1, 2013 at 10:45 AM, Geert Janssens wrote: Hi, I'm working on replacing GConf with GSettings in the GnuCash application. I have read through the GSettings reference documentation and migration guide.

GSettings child schemas

2013-03-01 Thread Geert Janssens
Hi, I'm working on replacing GConf with GSettings in the GnuCash application. I have read through the GSettings reference documentation and migration guide. With that I think I can mostly manage the conversion in the code. I'm unsure about the schema conversion though. I used gsettings-sche

Re: GtkPrintOperation uses wrong scale on Windows ?

2012-06-27 Thread Geert Janssens
On 27-06-12 11:34, Geert Janssens wrote: On 26-06-12 16:29, Michael Cronenworth wrote: Geert Janssens wrote: Am I doing something wrong here ? Was GNUCash setting units before? If so, what to? It was. This setting has never changed since 2007, while the bug first appeared in 2010. Your

Re: GtkPrintOperation uses wrong scale on Windows ?

2012-06-27 Thread Geert Janssens
On 26-06-12 16:29, Michael Cronenworth wrote: Geert Janssens wrote: Am I doing something wrong here ? Was GNUCash setting units before? If so, what to? It was. This setting has never changed since 2007, while the bug first appeared in 2010. Your question make me realize I may be chasing the

GtkPrintOperation uses wrong scale on Windows ?

2012-06-26 Thread Geert Janssens
Hi, GnuCash is using GtkPrintOperation (Gtk2.24) to print checks. On linux this has always worked fine, but on Windows we have major scaling problems. There is a bugreport for this [1], which I am trying to solve for quite some time now. A check that should be printed page-wide actually appe

Focus behaviour on widget derived from a gtkentry

2011-12-07 Thread Geert Janssens
Hi, I've been banging my head against the wall for some time now on this problem: I have a widget that is derived from a GtkEntry. The derived widget basically does some additional validation checks during text entry, nothing more really. If you like to see the complete code, you can browse it he