[9113] in The GTK GIMP ToolKit mailing list archive

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

[gtk-list] CList scrollbars

daemon@ATHENA.MIT.EDU (Jeremy Wise)
Thu Oct 8 23:28:25 1998

Date: Thu, 8 Oct 1998 23:28:04 -0400 (EDT)
From: Jeremy Wise <jwise@pathwaynet.com>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


Hello,

I've got a CList made with the following code:

   sal.lb_userwin = gtk_clist_new( 2 );
   gtk_widget_set_usize( sal.lb_userwin, 200, 285 );
   gtk_clist_set_row_height( GTK_CLIST( sal.lb_userwin ), 20 );
   gtk_clist_set_column_width( GTK_CLIST( sal.lb_userwin ), 0, 16 );
   gtk_clist_set_selection_mode (GTK_CLIST( sal.lb_userwin ),
                                 GTK_SELECTION_BROWSE);

   gtk_clist_set_policy (GTK_CLIST ( sal.lb_userwin ),
                         GTK_POLICY_AUTOMATIC,
                         GTK_POLICY_AUTOMATIC);

   gtk_signal_connect( GTK_OBJECT( sal.lb_userwin ), "button_press_event",
                       GTK_SIGNAL_FUNC( icq_sendmessage_window ), &sal );

   gtk_box_pack_start( GTK_BOX( box ), sal.lb_userwin, TRUE, TRUE, 0 );
   gtk_widget_show( sal.lb_userwin );

-- snip --

Everything works fine, except clicking on the scrollbar sends
button_press_event's to icq_sendmessage_window.  This is really annoying,
because clicking on the scrollbar should scroll the CList, not select
items.  Is this a bug, or did I miss a step in setting it up?

Thanks in advance,

Jeremy Wise
jwise@pathwaynet.com


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


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