gtk_paint_window ? help
- From: manu aradhya <manu_aradhya yahoo co in>
- To: gtk-app-devel-list gnome org
- Subject: gtk_paint_window ? help
- Date: Mon, 6 Oct 2003 13:31:10 +0100 (BST)
Hi all, iam trying to use gtk_paint_box, can anybody
see the following call_back function and tell me why
it is not working? it is not giving any error but not
working also.
gint expose_draw( GtkWidget *da,GdkEvent *event,
gpointer data) {
GtkStyle *style2;
GdkRectangle rect_area;
gchar detail;
GdkGC *gc;
static int i = 0;
gc = gdk_gc_new (da->window);
rect_area.x = 120;
rect_area.y = 70;
rect_area.width = 258;
rect_area.height = 26;
style2 = gtk_style_new ();
gtk_widget_set_style (da, style2);
// gtk_draw_box
(style2,da->window,GTK_STATE_NORMAL,GTK_SHADOW_IN,120,70,258,26);
// gtk_paint_box
(style2,da->window,GTK_STATE_NORMAL,GTK_SHADOW_IN,&rect_area,da,&detail,
// 120,70,258,26);
gtk_widget_show_now (da);
}
________________________________________________________________________
Yahoo! India Matrimony: Find your partner online.
Go to http://yahoo.shaadi.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]