Re: Character " ° " in chains
Le lundi 07 mars 2005 Ã 13:17 +0100, christine botella a Ãcrit : > Hello, > > I work with Linux RedHat 2.4.7-10. > I generate a MMI with 'glade' and option 'gettext support'. So the > chains of characters in the forms are like that : _("toto"). > At execution, some chains in the forms including the character "Â" are > not printed and the following chains are also not printed. The empty > chain seems written instead of the correct chain. Is the glade file encoded in UTF-8 ? file my.glade tells you, and cp my.glade my.glade.bak; iconv -f -t utf-8 my.glade.bak >my.glade will fix it. ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: can glade files be used dynamically?
On Wed, 9 Mar 2005 12:10:13 -0500, Tristan Van Berkom <[EMAIL PROTECTED]> wrote: > On Wed, 9 Mar 2005 10:43:10 -0500, Rick <[EMAIL PROTECTED]> wrote: > [...] > > Can I generate glade XML files (.glade) on the fly and have them used > > by my application (via libGlade?) at run time to create dialogs? > Yes. > > > If so, can I then save the state of those dialogs to a new XML > > (.glade) file for persistence and analysis by my program? > No. Ahh, well I suppose if I can generate the XML in the first place, I can maintain persistance. Thank you. > Cheers, > -Tristan -- Cheers! Rick ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: can glade files be used dynamically?
On Wed, 9 Mar 2005 10:43:10 -0500, Rick <[EMAIL PROTECTED]> wrote: [...] > Can I generate glade XML files (.glade) on the fly and have them used > by my application (via libGlade?) at run time to create dialogs? Yes. > If so, can I then save the state of those dialogs to a new XML > (.glade) file for persistence and analysis by my program? No. > Also, is libxml(2) or similar required for this behaviour or does > libglade provide an XML DOM? (or subset thereof) Yes (libxml2 is required). Cheers, -Tristan ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
can glade files be used dynamically?
I sketching out a pretty large app and I'm a total glade newbie, It looks pretty cool. I have some questions: Can I generate glade XML files (.glade) on the fly and have them used by my application (via libGlade?) at run time to create dialogs? If so, can I then save the state of those dialogs to a new XML (.glade) file for persistence and analysis by my program? Also, is libxml(2) or similar required for this behaviour or does libglade provide an XML DOM? (or subset thereof) -- Cheers! Rick ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
RE: dateformat
A little help. Use str_date = g_strdup_printf("%02d/%02d/%02d", gday, gmonth+1, gyear); Then str_date will always have the same length. Jorge Monsalvo Argentina -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de David Necas (Yeti) Enviado el: Miércoles, 09 de Marzo de 2005 11:25 Para: Hariyanto CC: gtk-list@gnome.org Asunto: Re: dateformat On Wed, Mar 09, 2005 at 09:10:32PM +0700, Hariyanto wrote: > There is still problem because sometime I don't get date with same > lenght string. I get 7/8/2005 or 12/12/2005 or 7/12/2005. Why don't you simply use sscanf(datestring, "%d/%d/%d", &d, &m, &y); ? > I get this date with this code : Well, that may be the reason. You can achieve the same with str_date = g_strdup_printf("%d/%d/%d", gday, gmonth+1, gyear); Yeti -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.4 - Release Date: 07/03/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.4 - Release Date: 07/03/2005 ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: dateformat
On Wed, Mar 09, 2005 at 09:10:32PM +0700, Hariyanto wrote: > There is still problem because sometime I don't get date with same lenght > string. > I get 7/8/2005 or 12/12/2005 or 7/12/2005. Why don't you simply use sscanf(datestring, "%d/%d/%d", &d, &m, &y); ? > I get this date with this code : Well, that may be the reason. You can achieve the same with str_date = g_strdup_printf("%d/%d/%d", gday, gmonth+1, gyear); Yeti -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: dateformat
There is still problem because sometime I don't get date with same lenght string. I get 7/8/2005 or 12/12/2005 or 7/12/2005. I get this date with this code : void on_btn_get_date_clicked(GtkButton *button, gpointer user_data) { GtkWidget *calen,*tentry1; gint gyear,gmonth,gday; char *str_day,*str_month,*str_year,str_date[16]; calen = lookup_widget(GTK_WIDGET(button),"calendar1"); gtk_calendar_get_date(calen,&gyear,&gmonth,&gday); str_year = g_strdup_printf("%i", gyear); str_month = g_strdup_printf("%i", gmonth+1); str_day = g_strdup_printf("%i", gday); strcpy(str_date,str_day); strcat(str_date,"/"); strcat(str_date,str_month); strcat(str_date,"/"); strcat(str_date,str_year); gtk_entry_set_text(GTK_ENTRY(lookup_widget(frm_purchase, "entry_date_purchase")), str_date); } Then I fill to GTK list after that I want to save to mysql in /mm/dd. On Wed, 9 Mar 2005 05:43:13 +0100 (CET) [EMAIL PROTECTED] wrote: > > Is there dateformat function in gtk? I have date dd/mm/ and I want > to change to /yy/dd Mysql format. > > thx > > That would be plain playing > > void convert(char *dst, const char *src) > { > dst[0]=src[6]; > dst[1]=src[7]; > dst[2]=src[8]; > dst[3]=src[9]; > dst[4]='/'; > dst[5]=src[3]; > dst[6]=src[4]; > dst[7]='/'; > dst[8]=src[0]; > dst[9]=src[1]; > dst[10]=0; > } > > Stian > ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Gtk themes link doesnt open.
> hello gtk webpage admin, > > the gtk themes page isnt working. i just wanted to put it into your > notice. http://www.gtk.org/api/ has a dead links aswell. http://www.gtk.org/api/2.6/pango-1.8.0/index.html is wrong http://www.gtk.org/api/2.6/gdk-pixbuf/index.html has some strange letters around that was ment to be spaces (comes as (?) things on my font) Stian ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Gtk themes link doesnt open.
hello gtk webpage admin, the gtk themes page isnt working. i just wanted to put it into your notice. thankyou. ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Character " ° " in chains
Hello, I work with Linux RedHat 2.4.7-10. I generate a MMI with 'glade' and option 'gettext support'. So the chains of characters in the forms are like that : _("toto"). At execution, some chains in the forms including the character "°" are not printed and the following chains are also not printed. The empty chain seems written instead of the correct chain. Thanks to help me.begin:vcard n:Botella;Christine tel;fax:05 61 19 79 59 tel;work:05 61 19 78 45 x-mozilla-html:FALSE adr:;; version:2.1 email;internet:[EMAIL PROTECTED] fn:Christine Botella end:vcard ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list
Font problem
Hi, I've just installed gtk 2.6 on a dual opteron (amd64) system. However, when I try running the gtk-demo (or any other gtk app), I get the message: (gtk-demo:12007): Pango-WARNING **: Cannot open font file for font Luxi Sans 8 Segmentation fault So, something isn't working right. To install, I installed pkg-config, glib, freetype, fontconfig, render, xrender, libXft, pango, atk and finally gtk. The system has the Suse linux enterprise server. Can anyone help? Thanks, agb ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list