Re: instal gtk on windows
Am Samstag, den 03.02.2007, 13:40 +0100 schrieb nostradamo: I installed gtk2 on windows. I want compile with gcc. but compiler can not find the hedaer files. For example gtk.h Ich i make a include with dir direkt to gtk.h a list of a lot of unknow files und dirs will be showed. What is wront. or what does i have to do that compiler can work correct compiler is working with g++ file.c Greetings Ralf ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list Have you tried the Gtk+/Win32 Development Environtment from the 'Glade for Windows' Project? Here you can find it. http://gladewin32.sourceforge.net/modules/news/ Current version: Gtk+ 2.10.7, Glib 2.12.7 If you use Bloodsheet's Dev-C++ IDE, there is a Gtk+ Pakage also, but I had no good experience with it. With the gladewin32 gtk package you can use pkg-config to set the compiler flags. You must set the 'PKG_CONFIG_PATH' environment variable so that pkg-config can find the *.pc files. Hope that helps -- Jens Sauer [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Saving treeview state
Am Donnerstag, den 08.02.2007, 18:24 -0500 schrieb Dave Moore: If this is a stupid question, please feel free to flame me. I have an app that has a treeview. I would like to save some state information about this treeview to restore the next session. Namely I would like to remember the column sizes and positions so the user doesnt have to keep resetting them everytime he loads the app. Is there a simple/obvious way to do this? I've been googling for a few hours now and nothing is jumping off my screen. Thanks in advance. Dave ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list Hi, maybe you can get the columns with: 'gtk_tree_view_get_column' and then you can get the width property of the column with: 'gtk_tree_view_column_get_width' for the other properties there are also functions to get the value. On restoring, I think you must set the width with this: 'gtk_tree_view_column_set_min_width' or 'gtk_tree_view_column_set_fixed_width' I never tried. But I think this should work. I'm interested if this works. -- Jens Sauer [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: label text in Hindi
Hey, GNU gettext can help you with this. project page: http://www.gnu.org/software/gettext/ short intro: http://en.wikipedia.org/wiki/Gettext But gettext did not translate the strings automatically. Naveen Kumar schrieb: Hi all, I need to display the labels in hindi, I tried export LANG=hi_IN.UTF_8 But it will show the text in hindi only for stock items. please guide me how i should proceed to get the text of my desired widget in the language i want. Regards, Naveen -- Application Engineer Innovate Software Solutions Bengalooru-95 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list Naveen Kumar schrieb: Hi all, I need to display the labels in hindi, I tried export LANG=hi_IN.UTF_8 But it will show the text in hindi only for stock items. please guide me how i should proceed to get the text of my desired widget in the language i want. Regards, Naveen -- Application Engineer Innovate Software Solutions Bengalooru-95 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: how to destroy window if ptr to mainWindow not known
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lukasz Gromotowicz schrieb: Hi all, the problem is when loading windows from the xml file: glade_xml = glade_xml_new(ami.glade,NULL,NULL); I need to know the reference to main window (GtkWindow) to be able to destroy it, yes? I can get it like this: window = glade_xml_get_widget(glade_xml,window1); and destroy: gtk_widget_destroy(window); glade_xml_get_widget() returns NULL if the widget does not exists you can check if window is not NULL and after that you can call gtk_main or exit the app But what if there is no window1 in the glade file? Let's say updated xml changed the name to mainWindow? Window exists on the screen, but how to delete it? I believe that in a old version of libglade, glade shows all toplevel widgets even if gtk_widget_show_all was not called. With a current version I never saw this again. - -- Jens Sauer [EMAIL PROTECTED] OpenPGP key D3CA3DAF - - to verify attachments use 'gpg --verify FILENAME.sig FILENAME' -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHWDjnS6CQotPKPa8RAmPnAJ4i3RDmBG08WvNDVQHd6q82yg3G8QCfVfhD F8A0Ci7njApZUj1bbpfAtd4= =yk9l -END PGP SIGNATURE- ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list