Re: [gtk-list] catching resize; cursors



Alexander Kotelnikov wrote:
> 
> Hi,
> 
> 1. I want to catch resize of a widget, so I put
> 
> gtk_signal_connect (GTK_OBJECT (widget), "configure_event",
>                    (GtkSignalFunc) configure_event, NULL);
> 
> in my code. But this works only if ``widget'' is my top level window :(

Connect to the "size_allocate" signal instead.

 
> 2. I want to change cursor of a widget, but it seems that I need to show
> it (and all widgets it lays in) before putting
> 
> gdk_window_set_cursor (widget, gdk_cursor_new (c));
> 
> can this be got round?

Connect to the "realize" signal of the widget and set the cursor there.

Damon




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