Re: Null Ptr In Gdk::Window Initializer?
- From: Ed Rippy <ed rippy mindspring com>
- To: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Subject: Re: Null Ptr In Gdk::Window Initializer?
- Date: Tue, 20 Jul 2010 18:29:03 -0700 (GMT-07:00)
> Wouldn't it be better if you put your image inside Gtk::EventBox and
> that EventBox inside Gtk::Window
-- Well, Gdk::Window is a Drawable that receives events; actually I have a version running that uses a table full of event boxes containing Gtk::Images inside the toplevel. But I haven't figured out how to draw the letters (I'm setting the images from .png files). I figgerd w/ the Gdk::Windows I could draw the letters & get the events too.
>Glib::RefPtr<Gdk::Window> window is an empty refptr, because
>gtk_widget_get_window() returns NULL, when widget is not realized.
-- Thanks. I've moved the ImageSquot1 constructor & now have a running program that shows an empty ImageSquot1 in an empty Gtk::Window (wow!) I'll fiddle w/ that for a while & let you know when I'm stuck again.
Ed
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]