RE: settting the background and foreground



Dear Randy,

  Glib::RefPtr<Gdk::Window> win = get_window();
  Glib::RefPtr<Gdk::GC> some_gc = Gdk::GC::create(win);

...

The program console showed:

(Hello:2839): Gdk-CRITICAL **: gdk_gc_new: assertion `drawable != NULL'
failed

Surely the error message says exactly what it was saying last week, namely that your ref ptr 'win' contains a NULL, which means your program fails at line one. Concentrate on that. When that is solved the GC-creation will work, and then the rest of the program becomes interesting.

Good luck!
Mark


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