That worked, however, the background of the app became black, not
transparent.. what else did I miss?

Regards.

2015-10-19 19:00 GMT-03:00 Phil Wolff <[email protected]>:

>
> bool Dock::dibujarDock ( GdkEventExpose* event )
>
>
>
> On 10/19/2015 02:50 PM, Anibal F. Martinez Cortina wrote:
>
>> What seems to be wrong with this?
>> signal_damage_event().connect(sigc::mem_fun(&Dock::dibujarDock));
>> Entire code:
>> Dock::Dock() : Gtk::Window()
>> {
>> set_decorated(false);
>> set_default_size(200,200);
>> set_app_paintable(true);
>> contenedor = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL,0));
>> add(*contenedor);
>> botonPrueba = Gtk::manage(new Gtk::Button("Gran boton"));
>> contenedor->pack_start(*botonPrueba,Gtk::PACK_SHRINK);
>> contenedor->show_all();
>> signal_damage_event().connect(sigc::mem_fun(*this,&Dock::dibujarDock));
>>
>> }
>> void Dock::dibujarDock()
>> {
>> contextoVentana = get_window()->create_cairo_context();
>> contextoVentana->set_source_rgba(1.0,1.0,1.0,0.0);
>> contextoVentana->set_operator(Cairo::OPERATOR_SOURCE);
>> contextoVentana->paint();
>> //contextoVentana->destroy();
>> }
>>
>>
>> It won't build even though it should be correct right?
>>
>>
>> _______________________________________________
>> gtkmm-list mailing list
>> [email protected]
>> https://mail.gnome.org/mailman/listinfo/gtkmm-list
>>
>
>
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to