Re: [gtkextra] Disabling middle mouse button paste in GtkSheet



Well, I attached my callback like this:

gtk_signal_connect(GTK_OBJECT(sheet), "button_press_event", (GtkSignalFunc) callback, NULL);

gboolean
callback (GtkWidget *w, GdkEventButton *event, gpointer data) {

}

return TRUE or FALSE doesn't seem to matter, it still pastes the text.  On a
related note, gtk_sheet_set_active_cell() appears to lose one click toward
double or triple clicks.  You need to start over.  This kind of sucks because I
want a single middle mouse button click to do gtk_sheet_set_active_cell() on
the clicked cell and a double middle mouse button click to do something else,
neither of which to paste the text.

Perhaps this is a Gtk+ question, so I copied that list.

In message <Pine LNX 4 30 0109241147080 19067-100000 theory4 magnet fsu edu>, A
drian Feiguin writes:

>I never tried but surely you can connect the "button press" event signal
>to a callback function and interrupt the propagation of the signal.
>Saludos,
><ADRIAN>
>
>On Sun, 23 Sep 2001 jgotts linuxsavvy com wrote:
>
>> Is is possible to prevent the middle mouse button from pasting the current
>> selection with the GtkSheet widget?  I need this because I'm overriding the
>> normal middle button paste functionality.
>>
>> John
>>
>>
>

-- 
John GOTTS <jgotts linuxsavvy com>  http://linuxsavvy.com/staff/jgotts




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