Title: RE: signal_connect ??
ok, if you see the API reference:
http://developer.gnome.org/doc/API/gtk/gtkwidget.html#GTKWIDGET-DELETE-EVENT
you will see that the callback function receives 3 parameters instead of two:
WRONG:
void
file_quit_cmd_callback (GtkWidget * widget, gpointer data)
{
Hello , i have a problem with gtk_signal_connect ..
i try to copy the String "Bye" (example) to thefunction
file_quit_cmd_callback ...
...
gtk_signal_connect (GTK_OBJECT (main_window), "delete_event",
GTK_SIGNAL_FUNC (file_quit_cmd_callback),
(gpointer)
On Wed, 2001-09-12 at 20:17, Martin Buchan wrote:
> Hi,
> I downloaded the GTK tutorial and got busy writing and compiling the helloworld
> prog. It seemed to compile with no errors but...
>
> How do i actually 'run' the compiled program?
> I ended up with a file in my directoy called helloworld,
Ronald Bultje <[EMAIL PROTECTED]> writes:
>
> I'm trying to save a gdkpixbuf (from a drawable) to a file (png, jpg).
> On internet, I see a lot of discussion (from june-2000) about a
> gdk-pixbuf-save patch being comitted to gtk-1.3 But what happened to
> it? Such functions are not in my gdk
Hi there,
I've a problem with the GTK-CList:
First: How do I change the attributes of the GTK-Widget
which is in the Column-Title?
I tried the following:
GtkWidget *widget = gtk_clist_get_column_widget(clist, column);
GdkColor *color = some otherwiese tested co
Hello,
I'm trying to save a gdkpixbuf (from a drawable) to a file (png, jpg).
On internet, I see a lot of discussion (from june-2000) about a
gdk-pixbuf-save patch being comitted to gtk-1.3 But what happened to
it? Such functions are not in my gdkpixbuf.h..
Or has the patch been comitted to t
Hello.
I have been thinking of writing a program.
When that happens, i usually give a lot of time to think how i will do it and how it
will look like, and make other functions before starting to write the interface, is
this good practice?
Well, the point is, like 2 months ago, i had to use autoc
Hi,
I downloaded the GTK tutorial and got busy writing and compiling the helloworld
prog. It seemed to compile with no errors but...
How do i actually 'run' the compiled program?
I ended up with a file in my directoy called helloworld, which i imagine is
the executable.
What commands do i need to
On Wed, 12 Sep 2001, Tamara wrote:
Hi,
Use the following for Enter only:
gtk_signal_connect(GTK_EDITABLE(entry),"activate",gtk_button_clicked,your_button);
> Hi!
> I've a window with an entry and a button, I'd like that when I fill the
> entry and I press "return" (for example) the button w
Hi!
I've a window with an entry and a button, I'd like that when I fill the
entry and I press "return" (for example) the button will be clicked.
I wrote:
gboolean on_entry_key_press_event (GtkWidget *widget,GdkEventKey
*event,gpointer user_data)
{
gtk_butto_clicked (lookup_widget (GTK_WID
We are horrified by the news from New York and Washington.
We want voice the feelings of sorrow and sympathy to all affected
members of lists.
The VDK team
--
===
Mario Motta [AI Research Group - Rimini - Italy]
http://vdkbuilder.sourceforge.net
===
11 matches
Mail list logo