Re: How to set locale dynamicly under GTK-win application?

2008-05-12 Thread Marvin Zhang
I set but it still doesn't work. int main(int argc, char *argv[]) { ... SetEnvironmentVariable("LANG", "zh_CN"); SetEnvironmentVariable("LC_ALL", "zh_CN"); gtk_init(&argc, &argv); ... } - Original Message From: Daniel Atallah <[EMAIL PROTECTED]> To: Marvin Zhang <[EMAI

Re: How to set locale dynamicly under GTK-win application?

2008-05-12 Thread Daniel Atallah
On Mon, May 12, 2008 at 8:50 PM, Marvin Zhang <[EMAIL PROTECTED]> wrote: > There is a method to change the locale by setting the environment LC_ALL in > windows (2000 or XP). But how to change the locale in the application? > I tried > 1. setlocale(LC_ALL, "zh_CN"); > 2. SetEnvironmentVariable(

How to set locale dynamicly under GTK-win application?

2008-05-12 Thread Marvin Zhang
There is a method to change the locale by setting the environment LC_ALL in windows (2000 or XP). But how to change the locale in the application? I tried 1. setlocale(LC_ALL, "zh_CN"); 2. SetEnvironmentVariable("LC_ALL", "zh_CN"); None of them works. Any help will be appreciated. Best regards

Re: text color on the button

2008-05-12 Thread Luiz Rafael Culik Guimaraes
Hi I do void ChangeColor( GtkWidget *hCtrl,ULONG hColor) // color in rgb format { GtkWidget *label ; GdkColor fColor ; if (GTK_IS_BUTTON(hCtrl) ) label = gtk_bin_get_child(GTK_BIN(hCtrl)); hwg_parse_color( hColor, &fColor ); gtk_widget_modify_fg(label,GTK_STATE_NORMAL,&fColor); }

Re: destroing data attached to a type (qdata)

2008-05-12 Thread Brian J. Tarricone
Stefan Kost wrote: > hi, > > I have an interface, where I share some data between the instances. > the data is created on first access. Now I also would like to release > it when the last instance goes. > > problem 1: base_finalize() is not called for static types > > I thought that I could

text color on the button

2008-05-12 Thread Lukasz Gromotowicz
Hi all, I can not find anywhere the complete description of how to change the color on the button label. I know I have to access the label which is on the button and then set the color with "gtk_widget_modify_fg()", but how can I get this label? I have created the button using gtk_button_new_with_

Re: URL to filename conversion

2008-05-12 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tor Lillqvist wrote: | g_filename_from_uri() | | --tml Tor, Thanks! that is exactly what I was hoping for. Kevin - -- Get my public GnuPG key from http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1 -BEGIN PGP SIGNATURE- Version: G

Re: URL to filename conversion

2008-05-12 Thread Tor Lillqvist
g_filename_from_uri() --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: URL to filename conversion

2008-05-12 Thread Gregory Hosler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin DeKorte wrote: | Is there is a GLIB function that takes a name like | | file:///home/user/name%20with%20spaces.txt | | and turns it into | | /home/user/name with spaces.txt | | Or even something that is close? | | Thanks, | | Kevin I had the sam

Re: URL to filename conversion

2008-05-12 Thread Martin (OpenGeoMap)
Hi > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Is there is a GLIB function that takes a name like > > file:///home/user/name%20with%20spaces.txt > > and turns it into > > /home/user/name with spaces.txt > > Or even something that is close? > > > Perhaps this: http://library.gnome.org/d

URL to filename conversion

2008-05-12 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there is a GLIB function that takes a name like file:///home/user/name%20with%20spaces.txt and turns it into /home/user/name with spaces.txt Or even something that is close? Thanks, Kevin - -- Get my public GnuPG key from http://pgp.mit.edu:

destroing data attached to a type (qdata)

2008-05-12 Thread Stefan Kost
hi, I have an interface, where I share some data between the instances. the data is created on first access. Now I also would like to release it when the last instance goes. problem 1: base_finalize() is not called for static types I thought that I could do some own ref-counting and then do

Re: Best way to capture scrolling

2008-05-12 Thread jcupitt
2008/5/12 Micah Carrick <[EMAIL PROTECTED]>: > What's the best signal for capturing when a GtkTextView is scrolled. I > don't need to know how much or anything... just that it was scrolled > either vertically OR horizontally by the mouse OR keyboard. I connect to the "changed" or "value_changed"