Results 1 to 2 of 2

Thread: [SOLVED] C++ Window Icon

  1. #1
    Join Date
    Jun 2008
    Location
    England -> Canada
    Beans
    331

    Question [SOLVED] C++ Window Icon

    Hey, I've written a small GUI calculator in c++ using the gtkmm libraries and it's all working perfectly however i would like to give the window an icon. I have googled about for a while and have found this:
    void Gdk::Window::set_icon ( const Glib::RefPtr<Window>& icon_window,
    const Glib::RefPtr<Pixmap>& pixmap,
    const Glib::RefPtr<Bitmap>& mask
    )
    from this page however i cannot make sense of it, am i even on the wright track ? the window name is CalcWindow and my xpm icon is called icon.xpm Any help would be appreciated, thanx
    Dif-tor heh smusma...
    Registered Linux User #476478 Register At www.counter.li.org
    *Slowly munches on a dead frog*

  2. #2
    Join Date
    Jun 2008
    Location
    England -> Canada
    Beans
    331

    Talking Re: C++ Window Icon

    It's okay i solved it now Realized i was heading completely the wrong way just added this bit of code after my code that displays the window

    window.set_icon_from_file("icon.xpm");
    Dif-tor heh smusma...
    Registered Linux User #476478 Register At www.counter.li.org
    *Slowly munches on a dead frog*

Tags for this Thread

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
  •