Re: [gtkextra] Disabling middle mouse button paste in GtkSheet
- From: Adrian Feiguin <feiguin magnet fsu edu>
- To: <jgotts linuxsavvy com>
- Cc: <scigraphica-gtkextra lists sourceforge net>, <gtk-list gnome org>
- Subject: Re: [gtkextra] Disabling middle mouse button paste in GtkSheet
- Date: Fri, 28 Sep 2001 11:27:03 -0400 (EDT)
On Fri, 28 Sep 2001 jgotts linuxsavvy com wrote:
> 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) {
>
gtk_signal_emit_stop_by_name(..."button_press_event"...)
> }
>
Try this out.
Saludos,
<ADRIAN>
> 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
> >>
> >>
> >
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]