Re: problem in using vscrollbar with gtktext widget



Le jeu 03/06/2004 à 06:45, rohit goel a écrit :
> hi...
>     i am developing a gui using gtk..but when i try to
> include vscrollbar with gtktext widget...compiler
> gives me error . part of code that gives me trouble is
> 
> 
> text = gtk_text_new(NULL, NULL);
>   gtk_widget_set_usize(text, 210, 0);
>   gtk_box_pack_start(GTK_BOX(box_a[1]), text, FALSE,
> FALSE, 0);
>   gtk_text_set_editable(GTK_TEXT(text), FALSE);
> /* some insert lines....*/
> vcroll = gtk_vscrollbar_new(GTK_TEXT(text)->vadj );
> 
> compiler error:
>  invalid type of argument `->' 
> warning : assignment makes pointer without cast
> 
> 
> plssssssss help me out!!!! remember i m newbie in gtk

GtkText is depreceated and should not be used in newly-written code (see
the documentation).
If you still want to use it, add:

#define GTK_ENABLE_BROKEN 

before including the gtk headers.
You SHOULD use GtkTextView instead.

Jean

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=



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