Thread: GTK+ Programming with gtkmm

  1. #1
    Registered User
    Join Date
    Jun 2014
    Posts
    66

    GTK+ Programming with gtkmm

    Hi,

    I'm pretty new to GUI programming using the gtkmm library and mainly focusing on some new Widgets introduced in the version 3.12. Creating applications that make basic use of the HeaderBar, ActionBar and SearchBar widgets is no problem at the moment, but I'd like to able to design a interface that looks like the ones used by GNOME Clocks, Boxes or others.

    Basically I want to allow the user to select items in a window that way:

    https://dl.dropboxusercontent.com/u/...ks/initial.png
    https://dl.dropboxusercontent.com/u/.../selection.png

    I've already tried to understand the source files of both applications but sadly failed due to my missing Vala knowlede. The example source codes in the documentation examples book don't cover any selection in combination with HeaderBars and ActionBars.

    Could someone please give me a hint how this is implemented the right way?
    Thanks in advance!

  2. #2
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    Quote Originally Posted by milli-961227 View Post
    I've already tried to understand the source files of both applications but sadly failed due to my missing Vala knowlede. The example source codes in the documentation examples book don't cover any selection in combination with HeaderBars and ActionBars.
    gtkmm is a C++ wrapper. If you don't know Vala, why not look at the C++ examples. The docs included in gtkmm all refer to C++ classes, by the way. And the introduction/tutorials on the homepage are for a C++ audience. By the way, if you have a specific question about it maybe try in this forum's C++ forum. I wouldn't immediately classify gtkmm as "Game programming"

  3. #3
    Registered User
    Join Date
    Jun 2014
    Posts
    66
    gtkmm is a C++ wrapper. If you don't know Vala, why not look at the C++ examples.
    Of course I looked at the C++ (not Vala) examples, but as mentioned in my first post those examples don't cover what I want.

    By the way, if you have a specific question about it maybe try in this forum's C++ forum. I wouldn't immediately classify gtkmm as "Game programming"
    Hm, I created my thread in here because this forums description is Questions specific to game programming, sound and graphics libraries, algorithms and techniques. Though, asking in the C++ forum might be a better idea, thanks for this hint.

    Thanks for your quick answer, I'll try it in the C++ forum if no one can help me here!

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    Quote Originally Posted by milli-961227 View Post
    Questions specific to game programming, sound and graphics libraries...
    If you're new to this, I can understand the confusion. A graphics library is typically a library that allows you to draw shapes, text, sprites, and possibly 3d models on screen. Examples of a graphics library would be Allegro or SDL. This is different from a GUI toolkit such as gtkmm. A few other GUI toolkits are Qt, wxWidgets, and GTK+ (the C library on which gtkmm is based).
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  5. #5
    Registered User
    Join Date
    Jun 2014
    Posts
    66
    To be honest, I didn't even know there is a difference.. Thank you for that clarification, this probably saved me a lot of time!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. netbeans gtkmm missing includes
    By Shingetsu Kurai in forum C++ Programming
    Replies: 3
    Last Post: 07-05-2011, 01:28 PM
  2. Using Gtkmm with sockets
    By lautarox in forum C++ Programming
    Replies: 10
    Last Post: 03-02-2010, 11:32 AM
  3. install gtkmm in dev c++
    By curt22 in forum Windows Programming
    Replies: 0
    Last Post: 09-08-2007, 04:46 PM
  4. Problems installing GTKmm
    By LiKWiD in forum C++ Programming
    Replies: 6
    Last Post: 03-29-2004, 11:31 PM