Re: Ideal way to create toolbar (with pic)

2004-02-20 Thread Raymond Wan
Hi John, On Fri, 20 Feb 2004, John Cupitt wrote: Raymond Wan wrote: I'm trying to create a toolbar button as follows: iconw = gtk_image_new_from_file (next.xpm); toolbar_button = gtk_toolbar_append_item (GTK_TOOLBAR (toolbar), NULL, Go to next, NULL, iconw, GTK_SIGNAL_FUNC

Re: GtkFileSelection

2003-03-28 Thread Raymond Wan
Hi, On Tue, 25 Mar 2003, Axel wrote: so i don' t think being wrong. so the handler to use shoud be void store_filename (GtkButton *ok_button, GtkFileSelection){ } and the connect : g..connect(GTK_OBJECT (file_selector-ok_button),clicked,G_CALLBACK (store_filename),file_selector);

Re: method for destroying GtkFileSelection

2003-03-28 Thread Raymond Wan
Hi, On Fri, 28 Mar 2003, Axel wrote: Hi here is the handler I use to destroy a gtkfileselection, when CANCEL button is pushed ... Is there a better way than that? (get the parent widget until you get the window) This works for me: static void cancel (GtkWidget *w, GtkWidget

GTK apps with valgrind

2003-03-07 Thread Raymond Wan
Hi all, I've just recently started running my GTK program (2.0) through valgrind (http://developer.kde.org/~sewardj/) and I noticed many problems (or repeated occurrences of the same problem). The problems are mainly minor ones such as use of an uninitialised values, as opposed to a seg

Re: gtk_entry_get_text() - having problems with return type

2003-03-04 Thread Raymond Wan
Hi, On Wed, 5 Mar 2003, Ben LeMasurier wrote: warning: assignment makes pointer from integer without a cast gethostbyname() requests a char * and gtk_entry_get_text() returns G_CONST_RETURN gchar* According to the glib docs, a G_CONST_RETURN gchar* is typedef'ed to a char* (See

Re: GtkTextView Questions -- please help! =]

2003-03-04 Thread Raymond Wan
Hi, On Mon, 3 Mar 2003, Arash Nikkar wrote: 1) I have created a window, with 2 textviews within it. Now I initialized the textviews the same way, but the top one is about 1/3 of the window, while the bottom is 2/3. I was wondering how i could set them to be the same length. This

Re: Destroying file selection (fwd)

2003-02-03 Thread Raymond Wan
Hi Michael, On Mon, 3 Feb 2003, Michael Hagemann wrote: What makes me suspicious about your code is the following line: g_signal_connect (GTK_FILE_SELECTION (filesel)-ok_button, destroy, G_CALLBACK (gtk_main_quit), NULL); This seems to kill the app as soon as the filesel is

Re: Finding cause of Gtk-CRITICAL in gtk_destroy_widget()

2003-02-02 Thread Raymond Wan
Hi, I can't remember if this was valid for 1.2, but try running it with gdb with the --g-fatal-warnings flag. i.e., within gdb, do run --g-fatal-warnings your program arguments. That has helped me in the past, though I can't remember if I used it with 1.2 . Ray On 2 Feb 2003, Brenden

Re: Destroying file selection

2003-02-02 Thread Raymond Wan
Hi Owen, On 2 Feb 2003, Owen Taylor wrote: I suspect you probably got something slightly wrong in your first attempt, and then wandered off into more and more complex variants. Most straightforward thing would be along the lines of: That's an accurate assessment. :) Unfortunately,

Destroying file selection

2003-01-31 Thread Raymond Wan
Hi all, I've created a file selection window which I want destroyed when I hit cancel. However, I don't know what I'm doing wrong as I've tried various combinations and, when I click it, I destroy everything but the window -- I've destroyed the button, the vbox of the filesel window,

Re: glib making problems

2003-01-13 Thread Raymond Wan
Hi all, A reply to an old posting, but I recently tried installing 2.2 and came to a similar problem. Basically: ... Making all in po make[2]: Entering directory `/home/rwan/gtk/install/glib-2.2.0/po' make[2]: *** No rule to make target `azNONE', needed by `all-yes'. Stop. make[2]:

Re: (no subject)

2002-06-10 Thread Raymond Wan
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

Re: A desperate plea to the GTK developers

2002-03-16 Thread Raymond Wan
On Sat, 16 Mar 2002 [EMAIL PROTECTED] wrote: How does anyone actually learn how to make an application using this toolkit when the most fundamental information simply isn't written anywhere? And sadly, after what I am told is a three year wait, the API docs have the same gaping holes in

Re: why declare non-ptr and pass with ?

2002-03-05 Thread Raymond Wan
On Tue, 5 Mar 2002, Kang Jeong-Hee wrote: in gtk-demo's tree_store.c source, each GtkTreeIter declared without * and passed with . IMHO this is out of order comparing other objects and widgets. Is there specific reason why declare non-* and pass ? Hi, I haven't seen the source in

Re: problem builduing gtk+2.0 (1.3.13)

2002-02-12 Thread Raymond Wan
Hi Jeff, On Tue, 12 Feb 2002, Jeff Payne wrote: Forgive my ignorance as I am new to GTK. I'm attempting to build the latest development release of gtk along with the supporting packages. After building the glib, atk, and pango packages, the gtk+2.0 configure script doesn't find the pango

GUI design

2002-01-30 Thread Raymond Wan
Hi all, Not directly related to GTK+, but I was wondering if anyone could suggest a book which talks about how to design a GUI. In particular, what are the do's and don'ts of GUI design. And, even better, if such a book exists which is directed at GTK+. Thanks in advance!

Re: Compiling gtk+ as user (non-root)

2001-12-27 Thread Raymond Wan
Hi Torsten, Sorry, but I don't know about gimp, but I have installed GTK+ as a non-root user, so I'll try to help. On Thu, 27 Dec 2001, Torsten Scheck wrote: $ export LD_LIBRARY_PATH=/home/torsten/local/lib:$LD_LIBRARY_PATH $ export

Re: GTK+ Download

2001-12-17 Thread Raymond Wan
On Thu, 13 Dec 2001, Stephen Lok wrote: I have trouble downloading the GTK+ libraries from the www.gtk.org website. Is the website down or file removed from the ftp site? Hi Stephen, For some reason, I had a similar problem when I tried to download GTK+ v1.3.10 and v1.3.11 .

RE: The problem with the fork() in gtk

2001-12-12 Thread Raymond Wan
On Thu, 13 Dec 2001, Hong, SeokGi wrote: The FAQ at www.gtk.org is that gtk application fork ls program. but in my case Not ls program but gtk-application. The top of the FAQ #5.3 says: Why does this strange 'x io error' occur when I fork() in my GTK+ app? This is not really

Re: locale not supported by Xlib

2001-12-12 Thread Raymond Wan
Hi, On Thu, 13 Dec 2001, Sanghun Park wrote: For locale setting to C Gdk-WARNING **: locale not supported by C library Gdk-WARNING **: locale not supported by Xlib, locale set to C Gdk-WARNING **: can not set locale modifiers For locale setting to POSIX Gdk-WARNING **: locale not

Re: Regarding accessing single widgets on a window

2001-12-11 Thread Raymond Wan
Hi, On Wed, 12 Dec 2001, Jyothi wrote: entry box. I have to write an API which has to take the reference of the label widget , hide that widget and show menu bar in the place of label... Since this should a common API, I cannot pass the I had a similar problem and actually, my

Re: font failbacks

2001-12-09 Thread Raymond Wan
Hi Ingo, On Sun, 9 Dec 2001, Ingo Krabbe wrote: I'm astonished that you Raymond cannot remember our conversation about the pangox.aliases file. There was a small problem there in missing documentation, but it solved exactly Olafs problem, though it was neither a solution to yours or

Re: font failbacks

2001-12-08 Thread Raymond Wan
Hi Olaf, I had the same problem before and I can't quite remember how I fixed it, but I think I came to the conclusion that it couldn't be fixed. Were you trying to run a statically linked executable or a dynamically linked one? I installed GTK on multiple other machines and it

Re: about deprecated widget in gtk 1.2.x

2001-11-22 Thread Raymond Wan
On Thu, 22 Nov 2001, Mario Motta wrote: What deprecated widget will remain still supported into gtk+ 2.0 ? (aside GtkText that i know not more supported ?) Hi, Take a look at: http://developer.gnome.org/doc/API/2.0/gtk/index.html and scroll down to the bottom. Ray

Re: Statically linking

2001-11-04 Thread Raymond Wan
Hi, First, thank you to both Sven and Ingo for replying to my message. Ingo, I will try what you suggested the first chance I get. But first, i found this message and Ingo's reply very interesting. On 4 Nov 2001, Sven Neumann wrote: Pango does a lot more than what you think it does,

Statically linking

2001-11-03 Thread Raymond Wan
Hi all, I'm afraid I'm still trying to statically link my program. I've now relaxed my requirements and having a statically linked program plus some extra files to get it working is fine by me. However, I'm having problems with these extra files. It's hard finding all of them

Re: Gtk Version

2001-11-02 Thread Raymond Wan
Hi, On Fri, 2 Nov 2001, Ian King wrote: Can anyone tell me which gtk version shipped with Redhat 6.2? Also, what version and above is considered acceptable to use in terms of lack of bugs and stability (1.2.8 or greater?). Sorry, but I can't answer your first question. As for your

Re: Statically linked GTK app

2001-10-31 Thread Raymond Wan
Hi all, Sorry for continually asking about this, but this problem has really stumped me... I've stripped away my code and came up with the minimum amount of code that will work dynamically but crash statically. Hopefully, someone can try it out and spot a mistake that I've made in my

Statically linked GTK app

2001-10-30 Thread Raymond Wan
Hi all, I'm having a problem creating a statically linked GTK application and I was hoping someone could help me. I've read the gtk-list archive and there were quite a few messages about it, but I'm now stuck on something else. I would like everything linked in (not just

Re: Statically linked GTK app

2001-10-30 Thread Raymond Wan
Hi all, Thanks to John, Christian, and Havoc for their replies. I've tried a few things and I'm not quite sure whether I'm further or closer than I was before. I installed gtk 1.3.10 using the arguments mentioned below, except that I didn't install gtkfb and used

Re: Statically linked GTK app

2001-10-30 Thread Raymond Wan
Hi Havoc, On 30 Oct 2001, Havoc Pennington wrote: Raymond Wan [EMAIL PROTECTED] writes: (process:31820): GRuntime-CRITICAL **: gtype.c:1824:g_type_register_static(): initialization assertion failed, use g_type_init() prior to this function I'm assuming you used g_type_init() or gtk_init

Re: gtk+-1.2.xxx fatal error in gtktext.c

2001-10-24 Thread Raymond Wan
Hi Jeremy, On Wed, 24 Oct 2001, Jeremy Henty wrote: However, I do know that gtktext is deprecated and is no longer supported ??!!? Is 1.2.x supported or not? And what is the supported way to handle text in 1.2.x? AFAICT neither the tutorial nor the API reference describes any

Re: gtk+-1.2.xxx fatal error in gtktext.c

2001-10-23 Thread Raymond Wan
Hi Vladimir, On Tue, 23 Oct 2001, Vladimir Tsichevski wrote: Hi GTK developers, Sorry, I'm not a GTK developer, though. :) I found an error in gtktext.c module which results in application crash (an attempt to address a zero pointer). The problem arises only when a specific

Font selection bug?

2001-10-22 Thread Raymond Wan
Hi all, I just noticed a bug in the font selection widget and was wondering if recent versions of GTK have fixed it? In the left window, where you select a font name, you can not scroll up or down -- it seems like it is focussed on what you clicked. That is, if you scroll up, you can

Re: problem while executing

2001-07-21 Thread Raymond Wan
Hi Anand, On Fri, 20 Jul 2001, Anand wrote: the program has compiled properly, but on executing I get this message repeatedly, which i suppose means that there is some problem with Yes, these repeated messages are quite difficult to find until you run your program through gdb and

Re: confused about arrow key syms

2001-07-06 Thread Raymond Wan
Hi, Actually, I think what Skip was asking about was what KP_Up meant. I don't know from a GTK point of view, but from what I know of laptops, it would be the Page Up that you get on your numeric pad. Most laptops do have a numeric pad, but you have to hit like three keys :-) to turn

Re: Transmit an array to a function

2001-07-05 Thread Raymond Wan
Hi, On Thu, 5 Jul 2001, Anthony Ferrand wrote: I'm not sure about it but try this : gtk_signal_connect (GTK_OBJECT(button),clicked,GTK_SIGNAL_FUNC(function), widget); according that widget is the name of your array (GtkWidget *widget[20]) This should work, I think (thought I never

Re: Latest version of GTK+, GLIB and Pango !!

2001-06-25 Thread Raymond Wan
On Tue, 26 Jun 2001, Pranjal Saikia wrote: I wanted to know the latest versions of GTK+, Glib and Pango. Actually I wanted to run my application with Frame Buffer enabled. Please help to proceed. Please let me know, the availability of these packages. Hi, Take a look at:

Re: New release of GTK+ libraries (1.3.6)

2001-06-19 Thread Raymond Wan
Hi Havoc (or anyone else who knows the answer :) ), About the 1.3.6 release, On 14 Jun 2001, Havoc Pennington wrote: The JPEG/PNG/TIFF libraries and pkg-config 0.7 are needed to compile this release. These are available at: Do I need all three JPEG/PNG/TIFF installed or just

Argument passing / GTKTextView

2001-06-12 Thread Raymond Wan
Hi all, My GTK+ program is getting fairly large and until now, I've had one big global variable structure that has all the information I need. I was wondering if there is an alternative to this. The program I'm having seems to be in the call back functions, which I don't seem

Installing gtk without root access

2001-06-07 Thread Raymond Wan
Hi all, A few weeks ago, someone posted a message about having problems installing GTK without root access. I'm having problems with it now, but before I go digging through the scripts, can someone confirm to me whether or not it is possible to install GTK without root access?

GtkText vs GtkTextView

2001-05-14 Thread Raymond Wan
Hi, I haven't tried v1.3 of GTK+ yet, but I'm wondering if I should. What I'm using is a GtkText that's holding a lot of text...like megabytes of text and I don't mind switching to v1.3, even if it's just a pre-release of 2.0 . My program seems to be using a lot of memory and I'm

Suggestion for GTK+ 2.0 distribution...

2001-04-20 Thread Raymond Wan
Hi all, I was wondering if it would be possible to add some text file in the GTK+ 2.0 distribution (whenever it comes out) that gives brief instructions on how to port something from 1.2.x to 2.0? Maybe not even instructions, but three lists of widgets: one of widgets that should be

Re: Warning when making toolbars

2001-03-22 Thread Raymond Wan
On 21 Mar 2001, Havoc Pennington wrote: Raymond Wan [EMAIL PROTECTED] writes: I have found out that I can get rid of this warning if I do a gtk_widget_show_all to my main window just before this call. Even though the examples I've seen do this, is there another way for me to create

Warning when making toolbars

2001-03-21 Thread Raymond Wan
Hi all, I'm getting a warning when I'm creating toolbars which I don't quite understand. I have been able to stop the warnings, though, but I'm just wondering if anyone knows why I'm getting it. The warning is: Gdk-WARNING **: Creating pixmap from xpm with NULL window and

Linking gtktext with adjustments?

2001-02-27 Thread Raymond Wan
Hi, I've been working with a text widget and scrollbars and I'm having a problem with something. I have the two working together but what I would like to do is to scroll the vertical scrollbar so that position X of the displayed document in the text widget is at the top of the

GtkList question

2001-02-25 Thread Raymond Wan
Hi all, I was wondering if anyone know of a way to change font in a GtkList? In particular, I just want to add colour to my GtkList (ie. have all rows in my GtkList in black, but once in a while, highlight a word in another colour such as red). I noticed that GtkList inserts text as

More GtkList questions...

2001-02-25 Thread Raymond Wan
Hi again everyone, Well, besides my previously posted question, I'm having another problem with GtkLists. Actually, the problem might lie with the scrolling window widget but it seems like there's an upper limit to the number of items I can add to a GtkList. I would like to add

Re: More GtkList questions...

2001-02-25 Thread Raymond Wan
Hello, On 25 Feb 2001, Owen Taylor wrote: Raymond Wan [EMAIL PROTECTED] writes: Not sure how best I can add something like 8 rows while still being able to click on a row and know what row I clicked on... Does anyone have any suggestions?? In GTK+-1.2 there is a limit on window

Re: gtk tutorial

2001-02-24 Thread Raymond Wan
On Sun, 25 Feb 2001, Jim M. wrote: Hi, I have an old book on writing applications with gtk that is a very good book with lots if good examples. Has anyone in here knows of an newly published book that is very useful for beginners and intermediate programmers in gtk env.?. Something that

Re: How many *lines* are visible in a GtkText?

2001-02-15 Thread Raymond Wan
Date: Thu, 15 Feb 2001 12:29:18 -0800 From: "Eric M. Monsler" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: How many *lines* are visible in a GtkText? ... Is there some way of directly finding out the number of lines? TIA, Eric M. Monsler Hi Eric, This is actually a

Horizontal sliding on text boxes

2001-02-11 Thread Raymond Wan
Hi all, I was wondering if anyone has got horizontal sliding bars working in a text box? In the Tutorial, it says that they don't work, but I have this book titled "Developing Linux Applications with GTK+ and GDK" by Eric Harlow which seems to imply they do work. If indeed

gtk_init seg fault

2001-02-07 Thread Raymond Wan
Hi all, I'm quite new to GTK, so apologies for the newbie question... I've looked through the docs and the FAQ, but I can't seem to find a reason why I'm having this problem. Basically, I have some C code that spans several files which I would like to add a GUI to. As a

Re: gtk_init seg fault

2001-02-07 Thread Raymond Wan
Hello all, About my previous e-mail, some persistence paid off and I found my bugs. They were strange ones, which I'm disappointed at my compiler for. :) FYI, the reason for my problem was: On Thu, 8 Feb 2001, Raymond Wan wrote: Basically, I have some C code that spans several