gtk 1.1.14 - callback for button clicked changed?



hi,

for version 1.1.13 i had a button-clicked-callback like the following:
/*
 * callback if button was pressed (signal: "clicked")
 */
void
button_clicked (GtkWidget *button, obj *prog, GdkEventButton *event)
{
    char buffer[(PATH_MAX+NAME_MAX+1)*2];

    if (event->state & GDK_MOD1_MASK) {
        /* seems not to work.. !? */
        sprintf (buffer, "%s -e \"%s\" &", TERMINAL, prog->path);
    } else
        sprintf (buffer, "\"%s\" &", prog->path);
    io_system (buffer);
}

but the event->state was never GDK_MOD1_MASK.. don't know why.
in 1.1.14 the if-statement is always true..!? now i think the third
argument isn't a button event, isn't it?? is the event passed to
the callback or not? at which position?

cu
 rasca
-- 
 /#- Internet eMail: thron@gmx.de, FidoNet: 2:2410/304.5@fido -#\
<-#- Internet WWWeb: http://home.pages.de/~rasca/ -------------#->
 \#- please do NOT quote these lines or other useless stuff! --#/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]