[9532] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: CList button selections

daemon@ATHENA.MIT.EDU (Tim Janik)
Fri Oct 23 01:18:22 1998

From: Tim Janik <timj@gtk.org>
Date: Fri, 23 Oct 1998 07:05:38 +0200 (CEST)
To: gtk-list@redhat.com
In-Reply-To: <19981022163205.A16137@arthur.angel.escape.de>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

On Thu, 22 Oct 1998, Lars Hamann wrote:

> On Wed, Oct 21, 1998 at 04:42:12PM -0400, Rostedt, Steven wrote:
> > You're right, I'm using gtk+ 1.0.6
> > 
> > I've always been annoyed with Motif in its way of making it difficult to 
> > set which button you prefer to perform the selection.
> > 
> > I haven't looked at gtk+ 1.1.x, but can you change which button to perform
> > the selections? (a mask to set a policy (default to first button))
> 
> No, that's currently impossible. If we really want such functionality,
> we (Tim ? ;) have to write a mechanism similar to key bindings, which are
> also new in gtk+ 1.1. So the user can decide which button to use. 

hm, i think that would be overkill configuration wise ;)

maybe GtkCList should provide a sophisticated interface for this, ala

typedef enum
{
  GTK_BUTTON_IGNORED    = 0,
  GTK_BUTTON_SELECTS    = 1 << 0,
  GTK_BUTTON_UNSELECTS  = 1 << 1,
  GTK_BUTTON_DRAGS      = 1 << 2,
  ...
} GtkButtonFlags;


gtk_clist_set_button_actions (GtkCList            *clist,
                              GtkButtonActionType  button1_actions,
                              GtkButtonActionType  button2_actions,
                              GtkButtonActionType  button3_actions);


just an idea... ;)

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

---
ciaoTJ

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


home help back first fref pref prev next nref lref last post