[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk
Subject:    [gtk-list] Re: accelerator or signal_connect question
From:       "Emmanuel DELOGET" <pixel () epita ! fr>
Date:       1999-07-31 5:30:12
[Download RAW message or body]

>Hello,
>
> [snip]
>
>Do I have to connect each single entry with
>
>gtk_signal_connect (GTK_OBJECT (entry), "key_press_event",
>        GTK_SIGNAL_FUNC (paste_procedure),
>        NULL);

>
>but how can I make the paste_procedure remember into which entry the
>clipboard shall be pasted?


    The first arg of your paste procedure is a pointer to widget,
    and this widget is the widget which sent the signal. So your entry
    is (assuming your declaration if int paste_proc(GtkWidget *widget, ...))
    GtkEntry *entry = (GTK_ENTRY)(widget);

>
>Regards
>Daniel Hops
>
>--
>To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>
>

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic