CList scrollbars




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




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