José Alburquerque wrote:
José Alburquerque wrote:
On Wed, 2010-12-01 at 12:34 +0100, Kees Kling wrote:
Kees Kling wrote:
Hi,
I'm writing a sort of custom defined widget, which consists of several
standard widgets.
It is derived from Gtk::Frame and has a Gtk::VBox . In the VBox I
placed some buttons, labels and a drawing area. So far everything
works quit well. For purposes like raising and moving this widget, I
thought it was better to give the widget a Gdk:: window and I added
this in the on_realize() method of this widget. Now when I run it only
the Gdk::window is shown, so I have to add something in the
on_expose_event to let the widget draws itself completely, but I don't
know what.
pls help
regards
Kees Kling _______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
Hi,
I have to update my question, because I was still working on it. What I
didn't mentionned in my first mail that the code I used is mainly based
on the example of in the online gtkmm book chapter 26.2. Just now I
discoverred that signals are propagated to the child widgets, but the
wigdets are nor visible. I think the are coverred by the Gdk::Window.
If that's the case, may be necessary to deal with compositing the
Gdk::Window (see Gdk::Window::set_composited()[1]). The C API docs of
GdkWindow[2] has more information on this.
[1]
http://library.gnome.org/devel/gtkmm/stable/classGdk_1_1Window.html#aba9d5bea3de05b31eff0da2bed753db8
[2]
http://library.gnome.org/devel/gdk/stable/gdk-Windows.html#gdk-Windows.description
How can I solve this
regards
Kees Kling
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
Hi,
These thing I've already tried and did it again this morning. At firts
Gtk is complainting about the composited function with
"gdk_window_set_composited called but compositing is not supported".
I'm running a almost new version of Ubuntu linux, thus also X11, so I'm
not sure if this call is realistic, but I will dive into it.
Does this means, when I can't change X11, that the way I want to make
this composite widget is impossible ?
Probably . As you noted, the docs do say that compositing may not be
possible in all cases. But changing X11 should not be the way to solve
the issue. Can I ask why you think using an additional Gdk::Window for
your custom widget is a good idea? Maybe there's an easier approach to
achieve what you're trying to do.
--
José
Hi jose,
I also compiled the source code you showed me in the link
http://library.gnome.org/devel/gdk/stable/gdk-Windows.html#gdk-Windows.description
and also got the warning that compositing was not possible, but the example looks like to do where is made for, even when I comment out the line with " gdk_window_set_composited (event->window, TRUE); ". Does that mean that if I create the widget using gtk instead of gtkmm, I have a better chance????
Kees
|