Results 1 to 4 of 4

Thread: simple gtkmm question

  1. #1
    Join Date
    Mar 2006
    Beans
    837

    [solved]simple gtkmm question

    I started using gtkmm. I came across some functions which take as parameters some enums. These enums point to his page of the documentation->link

    But my problem is that it doesn't tell which header I need to "#include" and I am unable to use any enum.

    Do you know what should I do?
    Last edited by SledgeHammer_999; March 24th, 2008 at 11:14 AM.

  2. #2
    Join Date
    Mar 2006
    Beans
    837

    Re: simple gtkmm question

    The problem is somewhere else. Maybe I don't understand how to use enumerations. The compiler doesn't complain about the 'type of the enum' but for the value I am trying to assign to the enumeration.This means that it already 'knows' about the enumeration I am using. Here's an example:
    Code:
    Gtk::FileChooserAction d = FILE_CHOOSER_ACTION_OPEN;
    Here's the error I get:
    Code:
    error: ‘FILE_CHOOSER_ACTION_OPEN’ was not declared in this scope

  3. #3
    WW is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Oct 2004
    Beans
    1,532

    Re: simple gtkmm question

    Try
    Code:
    Gtk::FileChooserAction d = Gtk::FILE_CHOOSER_ACTION_OPEN;

  4. #4
    Join Date
    Mar 2006
    Beans
    837

    Re: simple gtkmm question

    Thank you. I can't believe that it was so simple.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •