(no subject)
I just download the gtk+-2.0.3, and after running command ./configure, I get the file Makefile. Now, I try to run make , but the command exits immediately with just a line of words. The following is detail: make: *** %?!%2%C%H$,;XDj$5$l$F$*$i$:!makefCf;_!#8+$D$+$j$^$;$S. I just can't understand what the above means. Could you please explain me why? I am much anxious! Thank you very much! your truely friend!
Re: (no subject)
Hi, I'm just guessing here but since you can't read the error message, is it possible that make is printing an English message on your Chinese language machine? If so, I'm afraid I can't be of much help since I'm not an expert on machines that run a program in a language different from the operating system. I suggest asking the sysadmin, a friend, etc. about this. Perhaps someone else on this list can help you, even though this problem (well, the display of the error message) is not related to GTK+. Ray On Mon, 10 Jun 2002, [big5] ¶À¼y Kason Huang wrote: I just download the gtk+-2.0.3, and after running command ./configure, I get the file Makefile. Now, I try to run make , but the command exits immediately with just a line of words. The following is detail: make: *** %?!%2%C%H$,;XDj$5$l$F$*$i$:!makefCf;_!#8+$D$+$j$^$;$S. I just can't understand what the above means. Could you please explain me why? I am much anxious! Thank you very much! your truely friend! ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: (no subject)
Am Mon, 2002-06-10 um 05.25 schrieb 黃慶 Kason Huang: I have got the sources of gtk+-1.2, and then, After I used the shell script command ./configure, I have got the file Makefile. But when I run command make, I find that it doesn't run correctly! The command make exits immediately after echoing a little few lines of information. Could you please hell me out? Thank you very much! Your truely friend! Hello! Well, what does your make say??? Could you send us these few lines, please? Cya, Olaf ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: [gtkmm] Problem with g_io_channel_read_chars
1. where is described which encodings are legal to use in Glib::convert? iconv --list gives you a list of known encodings. Note that this list is not guaranteed to be the same everywhere (depends on the version of iconv). The common encodings should however be available everywhere. thanks, that works. Daniel Elstner wrote: 2. how to determine what is current encoding for your connection, or where it's derived from? read the GLib API reference. I doubt this is mentioned in the GLib API reference. Without explicit charset handling the protocol, you're basically fucked. Hmm. I might be missing something, dunno. Well, I know about g_io_channel_get_encoding, I meant I would to know encoding of data I just read from the channel. Btw, if I did g_io_channel_set_encoding(chan, 0, 0) (that should set encoding to NULL, right? or I had to send NULL as parameter?) g_io_channel_read_chars() returned same conversion error as before. 3. if I used g_locale_to_utf8(), should I remove ptr, that it has returned, with g_free()? read the GLib API reference. Or just use Glib::locale_to_utf8() instead. Heh, I have to learn more about glibmm :). Thanks, Daniel, you're always very good helper. And, I liked your work on CellRenderers :). -Andrew ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: (no subject)
Oh, sorry! I didn't see the message above. Can't you switch your terminal English or something, perhaps use an English font or so. Then you might read the message. Cya Olaf ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: GtkCList and Return Key Action...
Kevin Wong wrote: I would like to make the Return key perform the same action as a mouse double-click in GtkCList. Hi Kevin, I'd make an accellerator for the RETURN key, then in the callback act on the currently selected row in the clist. (you want gtk-list, not gtk-devel-list for questions like this) John == Coming soon: Fabric of Vision Dress and Drapery in Painting 19 June - 8 September 2002 For information and tickets: http://www.nationalgallery.org.uk/exhibitions/fabric/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: More info about signals
Philippe FREMY wrote: A signal can have any numbner of args of any type, but only one client value. Could you point me to some code using this ? It would be better for me for understanding how it works. Hi Philippe, take a look at the gtk sources, they're quite easy to read. gtkbutton.c, for example, is very straightforward. John == Coming soon: Fabric of Vision Dress and Drapery in Painting 19 June - 8 September 2002 For information and tickets: http://www.nationalgallery.org.uk/exhibitions/fabric/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: questions on using icons with GtkButton.
Edward A. Falk wrote: I want to put a small bitmap or pixmap into a button instead of a text label. Is GnomePixmap the only/best way to do this? Hi Edward, for gtk1.2 take a look at the pixmap test in testgtk.c, it does this. It works the same way in gtk2 (I think), poke about in the demos/examples a bit. John == Coming soon: Fabric of Vision Dress and Drapery in Painting 19 June - 8 September 2002 For information and tickets: http://www.nationalgallery.org.uk/exhibitions/fabric/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: loading windows at a fixed x y position
hi... try set_usize, set_default_size. i have done it regards vinita.. On Sat, 8 Jun 2002, Punit Neb wrote: Hello, i want to load a window at a fixed x y position. after a lot of searching on the net, i found the function for this is gtk_window_set_uposition. however on compilation i get implicit declaration of function int gtk_window_set_uposition (...) my code is as under gtk_window_set_uposition(GTK_WINDOW (mywindow),500,500); i have already played around with combinations of the above with no success. i keep getting the same error. what am i doing worng? have any of you used this function before? Any help or hints most welcome. thanks rgds Punit Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Beginner
David Aliaga wrote: I have create a window with GTK with some entry widgets in it.I want to use them to initialize some parameters in a program I am writing. Hi Dave, you want something like this: void my_OK_callback() { // read values out of the entry widgets // pop down dialog // start your program running } int main() { // make dialog window // link OK button to my_OK_callback() above // show dialog gtk_main(); } J == Coming soon: Fabric of Vision Dress and Drapery in Painting 19 June - 8 September 2002 For information and tickets: http://www.nationalgallery.org.uk/exhibitions/fabric/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Beginner
Hello! I tried to put a variable set and to wait in an infinite loop until this is set to 1( which would be set in a function connected to a signal) but this just makes my window turn black. To prevent your window from turning black you might use gtk_main_iteration_do (FALSE); in your loop It runs one iteration of the mainloop Have a look at http://developer.gnome.org/doc/API/2.0/gtk/gtk-general.html#gtk-main-iteration-do Ciao, Olaf ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: string to guint conversion /w GTK+ 2
There isn't an existing function to do this. You'll need to write it, which you may have already realized. Use the strtok function to tokenize the string (i.e. separate the numbers from the commas). You call this function iteratively until you get to the end of the string. Each time you call the function, it will return a pointer to a character string that will contain one of the numbers. You can then use a function like atoi (or a glib equivalent if there is one) to convert the string to an integer. You can then put this integer intoa GArray. David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Vladimir Djokic Sent: Sunday, June 09, 2002 6:52 PM To: [EMAIL PROTECTED] Subject: string to guint conversion /w GTK+ 2 hi, maybe this isn't the mailin list in wich i should ask for help, but... i'm, for my final school project, making an application for serbian schools: student data, grades, reports... i need a function that will take a string of number separated by ',' ('1,2,3,23,456,5,6') and translate this string into *guint* numbers so i can add them to *GArray*. p.s. i'm using GTK+ 2.0.0. THANKS! :) ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: string to guint conversion /w GTK+ 2
El lun, 10-06-2002 a las 08:39, David L. Cooper II escribió: There isn't an existing function to do this. You'll need to write it, which you may have already realized. Use the strtok function to tokenize the string (i.e. separate the numbers from the commas). You call this function iteratively until you get to the end of the string. Each time you call the function, it will return a pointer to a character string that will contain one of the numbers. You can then use a function like atoi (or a glib equivalent if there is one) to convert the string to an integer. You can then put this integer intoa GArray. strtok is unsafe and is unrecommended, use g_strsplit instead. gchar** g_strsplit (const gchar *string, const gchar *delimiter, gint max_tokens); -- German Poo Caaman~o mailto:[EMAIL PROTECTED] http://www.ubiobio.cl/~gpoo/chilelindo.html ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: [gtkmm] Problem with g_io_channel_read_chars
Am Mon, 2002-06-10 um 11.33 schrieb Andrew E. Makeev: I doubt this is mentioned in the GLib API reference. Without explicit charset handling the protocol, you're basically fucked. Hmm. I might be missing something, dunno. Well, I know about g_io_channel_get_encoding, I meant I would to know encoding of data I just read from the channel. Then I guessed your question right :) As I said, basically you can't know the encoding, unless you're using a protocol that supports this feature. I don't know whether telnet (I assume that's what you're doing) supports it. If not, you've no choice but making the encoding configurable by the user. Btw, if I did g_io_channel_set_encoding(chan, 0, 0) (that should set encoding to NULL, right? or I had to send NULL as parameter?) g_io_channel_read_chars() returned same conversion error as before. I think 0 is correct. Have you checked whether changing the encoding actually suceeded? The GLib API doc describes when you're allowed to set it. Also, are you sure it fails in g_io_channel_read_chars(), and not somewhere else when you're trying to use the data? 3. if I used g_locale_to_utf8(), should I remove ptr, that it has returned, with g_free()? read the GLib API reference. Or just use Glib::locale_to_utf8() instead. Heh, I have to learn more about glibmm :). It's in the docs. Right there on the frontpage, there's a link Character Set Conversion. Thanks, Daniel, you're always very good helper. And, I liked your work on CellRenderers :). You're welcome ;) --Daniel ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: [gtkmm] Problem with g_io_channel_read_chars
Daniel Elstner wrote: Am Mon, 2002-06-10 um 11.33 schrieb Andrew E. Makeev: I doubt this is mentioned in the GLib API reference. Without explicit charset handling the protocol, you're basically fucked. Hmm. I might be missing something, dunno. Well, I know about g_io_channel_get_encoding, I meant I would to know encoding of data I just read from the channel. Then I guessed your question right :) As I said, basically you can't know the encoding, unless you're using a protocol that supports this feature. I don't know whether telnet (I assume that's what you're doing) supports it. If not, you've no choice but making the encoding configurable by the user. Well, I just looked for simplest way to do it... My task isn't supposed to be universal tool, so, I could handle encoding myself. Btw, if I did g_io_channel_set_encoding(chan, 0, 0) (that should set encoding to NULL, right? or I had to send NULL as parameter?) g_io_channel_read_chars() returned same conversion error as before. I think 0 is correct. Have you checked whether changing the encoding actually suceeded? The GLib API doc describes when you're allowed to set it. Also, are you sure it fails in g_io_channel_read_chars(), and not somewhere else when you're trying to use the data? Yes, I checked the encoding with g_io_channel_get_encoding, it was set to NULL. And I had G_IO_STATUS_NORMAL and no GError returned (just skipped it in the e-mail). Also, I followed all conditions to call g_io_channel_set_encoding() according to API ref. But... Since I studied giochannel.c, goiunix.c code thoroughly, I found that it could produce such error only if some type of encoding was set. Last time I've tried NULL encoding (KOI8-R as well), g_io_channel_read_chars() never returned. I guess, it's the problem that some glib coders should worry about, though. -Andrew ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: [gtkmm] Problem with g_io_channel_read_chars
From: Andrew E. Makeev [EMAIL PROTECTED] Daniel Elstner wrote: Am Mon, 2002-06-10 um 11.33 schrieb Andrew E. Makeev: Btw, if I did g_io_channel_set_encoding(chan, 0, 0) (that should set encoding to NULL, right? or I had to send NULL as parameter?) g_io_channel_read_chars() returned same conversion error as before. I think 0 is correct. Have you checked whether changing the encoding actually suceeded? The GLib API doc describes when you're allowed to set it. Also, are you sure it fails in g_io_channel_read_chars(), and not somewhere else when you're trying to use the data? Yes, I checked the encoding with g_io_channel_get_encoding, it was set to NULL. And I had G_IO_STATUS_NORMAL and no GError returned (just skipped it in the e-mail). Also, I followed all conditions to call g_io_channel_set_encoding() according to API ref. But... Since I studied giochannel.c, goiunix.c code thoroughly, I found that it could produce such error only if some type of encoding was set. Not completely true. It can produce an error when setting the encoding to NULL if 1) the encoding has already been set to something besides UTF-8, and 2) you've already read/written some data through the channel. Last time I've tried NULL encoding (KOI8-R as well), g_io_channel_read_chars() never returned. Is this a file you're working with, or a socket? With sockets, you often need to set the channel to non-blocking, esp. since GIOChannel now does its own buffering. Ron Steinke ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
colors and drawing
I'm looking for the easy way for changing pen colors for drawing. I currently do : guint32 white = 0x00ff; guint32 cyan= 0x000f; guint32 black = 0x; gdk_draw_polygon(pixmap,gc,FALSE,gpts,npts); I'm in need of 16 colors in this format. I found : typedef struct { const char *name; unsigned char red; unsigned char green; unsigned char blue; } ColorEntry; static ColorEntry xColors[] = { { alice blue, 240, 248, 255 }, { AliceBlue, 240, 248, 255 }, { antique white, 250, 235, 215 }, ... But am not sure how to get this to the screen. Does anyone have 16+ colors as the gint32 I have above. I don't even know where I got these from. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Workspaces
Is it possible in gtk to open a window in different workspaces? My application requires to open several windows and I want to distribute these windows over sevaral workspaces rather than leave the user to do it himself using the window manager. Ambar ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: string to guint conversion /w GTK+ 2
German Poo Caaman~o wrote: El lun, 10-06-2002 a las 08:39, David L. Cooper II escribió: There isn't an existing function to do this. You'll need to write it, which you may have already realized. Use the strtok function to tokenize the string (i.e. separate the numbers from the commas). You call this function iteratively until you get to the end of the string. Each time you call the function, it will return a pointer to a character string that will contain one of the numbers. You can then use a function like atoi (or a glib equivalent if there is one) to convert the string to an integer. You can then put this integer intoa GArray. strtok is unsafe and is unrecommended, use g_strsplit instead. gchar** g_strsplit (const gchar *string, const gchar *delimiter, gint max_tokens); THANKS, it works! ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Compile under MDK 8.2
I have gtk 1.2 and when I try to compile, I have error, gcc does not found gtk/gtk.h. But, I'm including `gtk-config --cflags --libs` in the compile line. Can you help me, Romain ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Problem building Pango
Hi, jblazi [EMAIL PROTECTED] writes: I had to reinstall my system and now I cannot build Pango: I receive the error message aclocal: configure.in: 262: macro `AM_PATH_GLIB_2_0' not found in library make: *** [aclocal.m4] Error 1 What can I do? use the tarball and the configure script that is shipped with the tarball. You shouldn't need to call aclocal. Salut, Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
RE: (no subject)
First thank you for your impatience. Yesterday I found out that I didn't actually get the file Makefile, because the command ./configure ran incorrectly. So I have downloaded glib-2.0.3 and then install it successfully. But when I configure pango-1.01, it suggests me to install glib-2.0.0 or above. The error information says that I should either set LD_LIBRARY_path enviroment variable or modify the file /etc/ld.so.conf. I just don't know what to do! Please help me out ! Thank you very much! Your truely friend! -Original Message- From: Olaf Leidinger [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 5:23 PM To: é»æ ¶ Kason Huang Cc: GTK Postliste Subject: Re: (no subject) Am Mon, 2002-06-10 um 05.25 schrieb é»æ ¶ Kason Huang: I have got the sources of gtk+-1.2, and then, After I used the shell script command ./configure, I have got the file Makefile. But when I run command make, I find that it doesn't run correctly! The command make exits immediately after echoing a little few lines of information. Could you please hell me out? Thank you very much! Your truely friend! Hello! Well, what does your make say??? Could you send us these few lines, please? Cya, Olaf Ù%Ëfj)b b²Ø-X¬¶èê+m§ÿæj)`¢¸?¨¥©ÿ+-wèþd+-
Re: Compiling and installing gtk+
Your best bet is to edit the file /etc/ld.so.conf to include the path that includes the glib-2.0.3 libraries that you just built and installed. If you used the tarball and didn't tell it anything different, it would have installed in /usr/local/lib. So make sure that /etc/ld.so.conf includes a line showing /usr/local/lib. The advice about LD_LIBRARY_PATH is useful if you do not have root access or otherwise cannot modify /etc/ld.so.conf. After you have updated /etc/ld.so.conf, and in general whenever you have installed a new library, it is wise to run /sbin/ldconfig (as root). This rebuilds the cache that the loader searches when it tries to link shared libraries. The usual sequence is: 1. ./configure 2. make 3. su to root 4. make install 5. /sbin/ldconfig 6. exit the su to root so you're back being yourself again HTH, -- --Jeff Jeff Trefftzs [EMAIL PROTECTED] http://www.tcsn.net/trefftzsHome Page http://gug.sunsite.dk/gallery.php?artist=68 Gimp Gallery http://trefftzs.topcities.com/home.html Photo galleries ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
text widget question.
Hello All, Need some text widget advice. I writing a GUI and would like to include a 'command line window' - A terminal-like interface to take keyboard input and provide text output (log style output). Looking for a simpler text widget that GtkText. I am currently using a GtkText for output and an GtkEntry for input. And this almost works, but getting the focus into the Entry is a pain. I would like it to be a single window. N-1 lines for a scrolling log, and the last line for keyboard input. And I will add line editing, and history (like tcsh). Some question: 1. Easy solution: Can take GtkText input (key_press_event), and just send these keys to the GtkEntry (as if the user typed them)? 2.Is there a better widget to used. I like to used it in a curses-like fashion ie: wmove(wn,11,11); wprintw(wn, %-3d, spl-pr.numarray); wmove(wn,12,11); wprintw(wn, %-3d, spl-pr.ndr); wmove(wn,13,11); wprintw(wn, %d, spl-pr.cbmode); With color too. ( I know about drawing_areas, but I would like the window to support the X mouse copy function (Right mouse key)). 3. Or can I just fork a color-tty task in a GTK window, that act like an embedded color terminal window. Then I can take my old curses-program have it part of my GUI. Would appreciate any advice thanks, Tony /-\ | Tony Denault| Internet: [EMAIL PROTECTED] | | NASA IRTF, Institute of Astronomy | Phone: (808) 974-4206 | | 1175 Manono St., Bldg 393 | Fax: (808) 974-4207 | | Hilo, Hawaii 96720 | | \-/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: Compile under MDK 8.2
i think u should write `gtk-config --cflags` `gtk-config --libs` regards, vinita On Mon, 10 Jun 2002, Castor Fou wrote: I have gtk 1.2 and when I try to compile, I have error, gcc does not found gtk/gtk.h. But, I'm including `gtk-config --cflags --libs` in the compile line. Can you help me, Romain ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list