LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-04-2004, 01:08 PM   #1
dfownz
Member
 
Registered: Jan 2004
Posts: 35

Rep: Reputation: 15
Programming with GTK


How much experience with C++ should I have before I start doing GUI projects? Or will I be learning more C++ by doing all my projects in GUI. I'm a giant newb at programming right now, but I know what GUI is and all that stuff. I'm just wondering how difficult using GTK would make the most basic of projects.

Thanks,

DF
 
Old 07-04-2004, 01:32 PM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
You can start directly with GTK library, you will just learn C/C++ on a different way but maybe more fun.

Just try to figure out how the pointers, array and char strings work in a first step.
 
Old 07-04-2004, 01:32 PM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Actually, GTK is written in standard C. I believe there's an extension/wrapper/port available to use C++, but I've never looked into it. So I don't know whether it supports everything GTK does in an object framework or if it lags behind.
 
Old 07-04-2004, 02:10 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
i've been using GTK for 4 years now, and it's got a really intuitive API, and makes developing aps really simple. Like Dark_Helmet said, it's originally in C, but i write acidrip using the perl bindings. I wouldn't worry at all about the state of the C++ bindings, find a tutorial and jump in.
 
Old 07-17-2004, 12:09 PM   #5
clausi
Member
 
Registered: Mar 2004
Distribution: Debian
Posts: 48

Rep: Reputation: 15
The official C++ Binding for GTK+ is http://gtkmm.org/ . It's part of of the GNOME language binding project and uses the GNOME release scheldue.

The only mayjor ceaveat for newbies is a change in the event calling syntax, so make sure you don't try compiling GTKmm 2.4 examples with GTKmm 2.2 installed. However, the GTKmm 2.2 documentation is still online.

Um, and the documentation is really nice, IMHO. There's a nearly complete book online available.
 
Old 07-17-2004, 01:31 PM   #6
kartik_mistry
Member
 
Registered: Mar 2004
Location: India
Distribution: Debian Sid, Lenny
Posts: 55

Rep: Reputation: 15
Yes,
My Experience with C++ and GTKmm is quite Good, I take some trainign to refresh My C++ fundas , and Discuss the GTK+ with friends daily . Glade is good to use, but we didn't use it , just use vi as editor.
Also, Anjuta is Good IDE , for Programming..
 
Old 07-17-2004, 02:50 PM   #7
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 54
Quote:
Originally posted by clausi
The only mayjor ceaveat for newbies is a change in the event calling syntax, so make sure you don't try compiling GTKmm 2.4 examples with GTKmm 2.2 installed. However, the GTKmm 2.2 documentation is still online.
Yes, that one threw me off for a little while! It was something to do with connecting slots and signals, I seem to remember.

Anyway, I found GTKMM very easy to use and the documentation very complete. I hadn't done much C++ programming before as I'm primarily a Java programmer, but I got stuck in and made a clone of Risk. All it needs now is some AI...which would be easier if I knew how to combine C++ and prolog.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK programming exvor Programming 10 07-11-2005 04:59 AM
gtk programming sharapchi Programming 3 06-21-2005 03:22 PM
GTK programming geminigal Programming 1 06-02-2005 04:08 AM
GTK programming geminigal Programming 11 04-06-2005 05:30 AM
GTK and programming NSKL Programming 2 01-14-2003 04:30 PM


All times are GMT -5. The time now is 05:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration