Disable background drawing
- From: nÿffffe9ant olivier <wxuserbrest yahoo fr>
- To: gtk-app-devel-list gnome org
- Subject: Disable background drawing
- Date: Tue, 27 Mar 2007 09:40:30 +0000 (GMT)
Hi,
for technical reason i want to block background drawing for widgets, i did that for a window but it doesn't
work ? can someone help me please. If everything works well when i open a frame upon this one, then on the
gtk_frame pixel of previous one must stay. Here is the code :
#include <gtk/gtk.h>
gint close_application( GtkWidget *widget,GdkEvent *event,gpointer data )
{
gtk_main_quit ();
return FALSE;
}
int main(int argc,char **argv)
{
gtk_init(&argc,&argv);
GtkWidget *window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_realize(window);
gdk_window_set_back_pixmap(window->window, NULL, FALSE);
gtk_widget_set_app_paintable(window,TRUE);
g_signal_connect (G_OBJECT (window), "delete_event",G_CALLBACK(close_application),NULL);
gtk_widget_show (window);
gtk_main();
return 0;
}
Thanks in advance
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]