background
- From: montse <root pc46 fsc alcala es>
- To: GTK Application Development List <gtk-app-devel-list gnome org>
- Subject: background
- Date: Thu, 16 Nov 2000 01:40:08 +0100
hello every body:
i would like to change the background of a text widget.
i wrote down:
GdkColor color;
gdk_color_parse("black",&color);
text=gtk_text_new();
gdk_window_set_background(text->window, &color);
i also tried:
gdk_window_set_background(GTK_TEXT(text)->text_area, &color);
when i run the app i get the following message:
Gdk-CRITICAL **: file gdkwindow.c: line 1233
(gdk_window_set_background): assertion `window != NULL' failed.
what's wrong with that???
Is there any way of changing the background color of a text widget???
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]