Re: Can't select text after popup menu



Replied directly to Ian, not to the whole list.  Sigh.

I have gtk_widget_set_events(window,GDK_ALL_EVENTS_MASK) and have also tried it with GDK_BUTTON_PRESS_EVENT | GDK_BUTTON_RELEASE_EVENT but so far I only get the behaviour described below.

I note, btw, that printing out the gint returned by gtk_widget_get_events always results in 134515340, whatever flags I've set, which strikes me as curious. I don't expect to be able to work out what's actually set by looking at the gint, but would expect its value to change as I set and unset things.

Rob

-------- Original Message --------

I realise how inadequate my initial description was!

I'm running gtk 1.2 under Red Hat Linux 2.4.18-27.7, all under an
X-windows manager called, I think, GDM.  I know that under Windows,
frinstance, you actually have to copy the text to the clipboard, but
under GDM just selecting it is enough.  Then the middle mouse button
will paste it wherever you want.  I think this is an X feature rather
than specifically GDM, but I'm new to X too!

I am making progress, but I'm not there yet.  If I change my
signal_connect to "button_release_event" then the selection works
properly, but then the popup menu entries take 2 clicks to be activated.
Found that late yesterday afternoon, so that's the next thing to chase.

Rob

Ian Bell wrote:
On Monday 16 Jun 2003 10:13 am, Rob Clack wrote:

I posted this question last week, but think I described it badly, so am
having another go.

In my window I display some text, which I can select by dragging across
it with the mouse.  The background goes blue and the text is in the
clipboard.  So far so good.


Are you sure it is in the clipboard? Normaly just selecting text in not sufficient to transfer it to the clipboard.

Ian

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


--
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Just self-replicating, compartmentalised redox chemistry, really.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Rob Clack                        Acedb Development,  Informatics Group
  email: rnc sanger ac uk                Wellcome Trust Sanger Institute
  Tel: +44 1223 494780                   Wellcome Trust Genome Campus
  Fax: +44 1223 494919                   Hinxton  Cambridge    CB10 1SA



--
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Just self-replicating, compartmentalised redox chemistry, really.
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Rob Clack                        Acedb Development,  Informatics Group
 email: rnc sanger ac uk                Wellcome Trust Sanger Institute
 Tel: +44 1223 494780                   Wellcome Trust Genome Campus
 Fax: +44 1223 494919                   Hinxton  Cambridge    CB10 1SA





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