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
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);
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
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
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
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
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
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
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,
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,
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]:
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
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
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
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
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!
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
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 .
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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?
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
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
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
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
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
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
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
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
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
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
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
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
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
54 matches
Mail list logo