David J. Singer wrote:
I'm writing an application under Linux that generates realtime audio and
uses
GTK as the GUI. I've been using gdk_draw_rgb_image to update the
interface
components onto a backing pixmap, then copy the whole lot to a drawing
area
at regular intervals. The graphics
I'm afraid Mark is right: you need to g_strdup() your keys and values
before you put them in the hash. It's the downside of C ... you have to
do the storage management.
John
Ruben I Safir wrote:
Your example is useless.
The example is very simple. Take in data from STDIN and use it for
Hi,
Ruben I Safir [EMAIL PROTECTED] writes:
The example is very simple. Take in data from STDIN and use it for hash
keys and values. I have to create a new pointer every time to do this
with the hash functions in glib. The only way I can think of doing this is
with mallac. The STDIN
Hi,
Wyatt Greenway [EMAIL PROTECTED] writes:
Hello, I have a problem when I try to compile! I type
this
gcc -o3 -o gtk01 gtk01.c `pkg-config --libs --cflags
gtk+-2.0`
then it says
Undifined reference to g_signal_connect
Help please!!!
I also typed this
pkg-config --modversion gtk+-2.0
Marc Tardif [EMAIL PROTECTED] writes:
Is there a way to declare a GString object on the stack and then pass a
reference to that object to an initialization method? For example:
GString str, *ptr;
ptr = g_string_assign(str, foo);
Of course, I realize that the above is not valid because
Thanks
Is it common practice to use GStrings in this circumstance?
Ruben
On 2002.04.25 07:33 Sven Neumann wrote:
Hi,
Ruben I Safir [EMAIL PROTECTED] writes:
The example is very simple. Take in data from STDIN and use it for hash
keys and values. I have to create a new pointer
In regards to g_strdup, do I need to allocate the memory for the returned string.
It's not
clear in the documentation. Or do I still need to allocate the memory seperately
Ruben
On 2002.04.25 11:28 Ruben I Safir wrote:
Thanks
Is it common practice to use GStrings in this circumstance?
On Thu, Apr 25, 2002 at 11:33:15AM -0400, Ruben I Safir wrote:
In regards to g_strdup, do I need to allocate the memory for the
returned string. It's not clear in the documentation. Or do I
still need to allocate the memory seperately
From the API reference:
g_strdup ()
gchar*
This has nothing to do with GTK as such, but I can't find a more appropriate
place to post about glib.
Trying to hammer out some code using a bunch of GStrings, I ran across a
case where I wanted to concatenate them into a new GString, separated by a
delimiter - much like g_strjoin. To my
Hello
strdup is not in my copy of ANSI c, which is in the KN King book,
C Programming, A Modern Approach. I originally learned
C from this text about 6 years ago. So I'm not familiar with strdup.
I would just have documented that it creates a newly allocated string which
safely allocates
How can I tell gtk2 to use emacs key bindings instead of windoze ones ?
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
On Thu, Apr 25, 2002 at 12:26:10PM -0400, Ruben I Safir wrote:
From the API reference:
g_strdup ()
gchar* g_strdup(const gchar *str);
Duplicates a string. The returned string should be freed when no
longer needed.
str : the string to
They need to be:
guint HashFunction (gconstpointer key);
gboolean HashCompare (gconstpointer a, gconstpointer b);
Ahh
I was following the example in the book. I see, but isn't gboolean
#DEFINED as an int? There is no BOOL in C.
The reference material online is
They need to be:
guint HashFunction (gconstpointer key);
gboolean HashCompare (gconstpointer a, gconstpointer b);
Ahh
I was following the example in the book. I see, but isn't gboolean
#DEFINED as an int? There is no BOOL in C.
The more important thing is the
Seems that worked
On 2002.04.25 14:31 Campbell, Matthew A wrote:
They need to be:
guint HashFunction (gconstpointer key);
gboolean HashCompare (gconstpointer a, gconstpointer b);
Ahh
I was following the example in the book. I see, but isn't gboolean
Hallo!
I'm developing an application using gtk2 and I have some questions regarding
GtkTreeView interface. Regrettably, on this part the documentation is what I
would call terse :-)
Now to the questions:
1. Is it possible to use an enumeration as a value for a column in TreeView,
for
Good evening,
I found a way to solve this (possibly uninteresting) problem. My sample
code is 500 lines, though, so instead of posting it to the group, would be
happy to directly email the code to anyone who emails me privately.
I ended up doing the bulk of the work in a drag_drop handler.
Hello, I have tried to upgrade to gtk version 2.0.1,
but I install glib, atk, pango, then when I try to
install the gtk rpm, it says.
libc.so.6(GLIBC_2.2.3) failed dependency check. Please
make sure that it is installed.
Or it says something in that line any way. Help me
please. I have Redhat
Hi,
snip
supposed to return a value (will look that up this evening) I can imagine
that the other callback function is never called.
sure, all event callbacks have a gboolean return value (they used to
have in 1.2 too) and the signal emission is stopped after the first
signal handler returns
Hi,
I was just wondering if it would be possible to have a GtkSpinButton inside a GtkTreeViewColumn. As far as I can see from the documentation and the source code it's possible to render a column with GtkCellRendererText and make it editable, but that will always create a GtkEntry widget in the
Hi,
Does anyone know if it's possible to have an image (like for example the stock icon in the File/Open menu) in a GtkCheckMenuItem or a GtkRadioMenuItem? I'm not sure yet if having both an icon and a radio/check marker in a menu entry might be confusing, but I want to use this for example in a
First of all, please forgive me if my message is out of topic, as I
haven't read the ML for a very long time.
I think I've found a bug with 1.2.10 while I was trying to implement a
2-column clist. When using gtk_clist_new(), I get only one column, and I
have to use gtk_clist_new_with_title() to
Hi Sven,
perhaps removing this (braindead) code in dialog creation could help:
gtk_widget_set_size_request(dlg, 0, 0);
gtk_widget_realize(dlg);
not sure what you had in mind here, but you should avoid fiddling with
size requests whereever possible. Realizing widgets manually is also
I
Hi Sven,
I noticed a difference in behaviour between the GTK 1.2 and GTK 2.0
GtkPreview widget. Somehow the following code used to work in GTK 1.2
(with gtk_signal_connect iso g_signal_connect, etc.) but in 2.0 the
motion_notify_event doesn't seem to get handled.
All:
Could someone please point me to a gtkhtml reference? Thanks.
--
Neil Hodge
[EMAIL PROTECTED]
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
Hi!
I have a plan to make gnome2-based browser engine,
which invoke components of libxml2, gnome basic, bonobo, etc.
but sadly I'm novice to heavy project than honourable hackers of gnome world.
I have to learn more inside of GNOME and GTK+.
as beginning, I think I have to implement the
26 matches
Mail list logo