Re: gtk_window_set_geometry_hints(), compiler returns "conversion from `int' to `enum GdkWindowHints'"
- From: Owen Taylor <otaylor redhat com>
- To: gtk-list gnome org
- Subject: Re: gtk_window_set_geometry_hints(), compiler returns "conversion from `int' to `enum GdkWindowHints'"
- Date: 04 Feb 2003 21:57:04 -0500
On Tue, 2003-02-04 at 17:08, Guilhem Tardy wrote:
> Hi all,
>
> I couldn't find anything about this on the archive, does anyone use
> tk_window_set_geometry_hints() and have come across the following?
>
> If setting more than one hint at a time, the suggested method in the
> documentation is:
>
> gtk_window_set_geometry_hints(GTK_WINDOW (window), GTK_WIDGET (NULL), &hints,
> GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE | GDK_HINT_BASE_SIZE);
>
> This doesn't work, since geom_mask is defined as a 'GdkWindowHints' rather than
> an int.
In C++, you'll need a cast. Just do:
(GdkWindowHints) Blah | Blah | Blah
(A C compiler accepts it without a cast fine.)
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]