Re: problem in using vscrollbar with gtktext widget

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

 



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?=

_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux