RE: settting the background and foreground
- From: Mark Roberts <gtkmm manumark de>
- To: Charles Seedle <charles seedle rigaku com>
- Cc: gtkmm-list gnome org
- Subject: RE: settting the background and foreground
- Date: Mon, 17 Jan 2011 09:58:22 +0100 (CET)
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]