UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

  • Index
  • » C
  • » gui programming

#1 2009-09-23 03:54 PM

Tommo
Member
Registered: 2007-09-03
Posts: 76

Re: gui programming

Hi.  I was just wondering what gui library people used/preferred?  I recently decided to take on a project that needed a gui, and I chose to use gtk, but I've gotta say - I'm not enjoying it.  It's like being a really picky web developer, and requires a lot of patience.  I had a look at wxwidgets but there doesn't seem to be a C API, just C++.  Recommendations?

Offline

#2 2009-09-23 08:02 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,839
Website

Re: gui programming

*shrug*  I generally hate GUI programming, but since I've had to do a bit lately, I've
been using GTK+, and surprisingly, I don't completely hate it... ;-)  It's a bit annoying
in some things, and the whole GUI main-loop/callback mindset takes a bit of getting
used to, if you're not accustomed to that style of coding...  But, honestly, I'm about as
happy with it as I could imagine being with any GUI toolkit...

And, if you're not already using it, I highly recommend using "glade" to design your
GUIs, and libglade in your app to load the "*.glade" files on the fly...  (Ie: don't generate
actual code from glade, just save the "*.glade" XML file, then you can load that on the
fly from your app, and create all your widgets, and look them up by whatever name
you've assigned them in glade...)  Actually, in more recent versions of GTK+, I think
libglade has been deprecated in favor of some alternate method of doing the same
thing, but I haven't switched over yet, and libglade still works fine...  But, that concept
is really cool, since you can tweak your GUI layout and details later, without needing
to change your code and recompile at all...  And, your code can be kept relatively
simple and uncluttered with a lot of useless widget creation and initialization details...

Offline

#3 2009-09-23 09:29 PM

Tommo
Member
Registered: 2007-09-03
Posts: 76

Re: gui programming

Offline

#4 2009-09-23 10:35 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,839
Website

Re: gui programming

Offline

#5 2009-09-23 11:30 PM

Tommo
Member
Registered: 2007-09-03
Posts: 76

Re: gui programming

It sounds as though you have a cool job to keep you occupied.  I'm currently looking for a way into a programming related job but I have a maths degree, not a cs degree, and I'm obviously not as skilled as i would like to be, having spent a lot of time studying maths instead. Programming/learning has just been a hobby of mine. Most software jobs seem to advertise Java, C# etc, not C which is a shame.  It's an OO world, it seems.

Offline

#6 2009-09-24 12:14 AM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,839
Website

Re: gui programming

Offline

#7 2009-09-24 11:19 AM

Tommo
Member
Registered: 2007-09-03
Posts: 76

Re: gui programming

Offline

#8 2009-09-28 03:55 PM

Tommo
Member
Registered: 2007-09-03
Posts: 76

Re: gui programming

Offline

#9 2009-09-28 08:32 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,839
Website

Re: gui programming

Offline

  • Index
  • » C
  • » gui programming

Board footer

Powered by FluxBB