Re: getting the Gdk::Window from an event function



never-mind... stupid mistake by me :(


On Sun, Dec 11, 2011 at 9:53 PM, lecas malecas <darkiiiiii gmail com> wrote:
> Its in a signal_button_press_event() function handler, with a GdkEventButton*.
>
> With a GdkEventMotion* event, get_window() works.
>
> On Sun, Dec 11, 2011 at 9:21 PM, lecas malecas <darkiiiiii gmail com> wrote:
>> Hey, I'm trying to get the Gdk::Window in an event function.
>>
>> I've tried both:
>>
>> Glib::RefPtr<Gdk::Window> window = get_window();
>>
>> and
>>
>> Glib::RefPtr<Gdk::Window> window = Glib::wrap(event->window);
>>
>>
>> but they return null.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]