Re: Where I put the realize function?
- From: José Alburquerque <jaalburquerque cox net>
- To: Paulo Flabiano Smorigo <pfsmorigo gmail com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Where I put the realize function?
- Date: Fri, 08 Aug 2008 15:01:15 -0400
Paulo Flabiano Smorigo wrote:
Only for knowledge, I solved the problem creating a signal at the main
gtkmm class. Like this:
signal_realize().connect(sigc::mem_fun(*this,
&PlayerWindow::setWindowID));
And then put the following code in the function:
int wid;
Glib::RefPtr<Gdk::Window> wid = get_window();
wid = GDK_WINDOW_XID(Glib::unwrap(get_window()));
std::cout << "WID: " << wid << std::endl;
I was just thinking, I think you may want to make sure that you are
connecting to the signal_realize() of the widget you use to put the
video in and not the main window. As Paul already mentioned in the
"embed" thread, it is important to use a widget with its own GdkWindow
(like a Gtk::DrawingArea), but also connect to that widget's
signal_realize() and not to the main window's signal_realize(). I'm
only guessing though, but I think you'll get better results this way.
--
P.F.Smorigo
------------------------------------------------------------------------
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
--
José Alburquerque
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]