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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to