LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-18-2004, 04:36 PM   #1
objorkum
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 10.0
Posts: 231

Rep: Reputation: 30
Program GTK apps


I want to learn to program some apps in GTK.

Which language should I use? Which tools?

Any links to great howtos and guides?
 
Old 11-18-2004, 05:08 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
Why not try the FAQ and tutorials on http://gtk.org ?
 
Old 11-19-2004, 10:55 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the tutorials at gtk.org are very good. as gtk is written in C, the C documents are liekly to be the most complete and insightful. C can be a scary prospect though. i use gtk2 with perl on my program, acidrip.
 
Old 11-20-2004, 02:02 AM   #4
lilyerr
LQ Newbie
 
Registered: Mar 2004
Posts: 27

Rep: Reputation: 15
c
 
Old 11-20-2004, 09:23 AM   #5
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
Dont use c for gtk+ programming. Use high level programming like python or c++. So use gtkmm ( www.gtkmm.org ) or pygtk ( www.pygtk.org ) or C# ( www.mono-project.com ). C is library language.

http://www.gnome.org/~newren/tutoria...ng-with-gnome/


Finally, a discussion of what are low level details would not be complete without discussing the language itself. While the core of Gnome is implemented in C, it was designed with other programming languages in mind and therefore has perhaps one of the cleanest and most comprehensive set of language bindings of any toolkit (see http://www.gtk.org/bindings.html). To quote Owen Taylor, "Don't use C; In my opinion, C is a library programming language not an app programming language." Now, of course, if you want to work on existing Gnome applications, you should use whatever language that application is written in, and that will usually mean C. But for those starting their own projects, they will probably want to pick a different language. This guide provides all example programs in C and C++ and Perl and Python to assist you in doing so. However, this guide is biased toward the C bindings as one of my original goals in writing it was to encourage more people to work on existing Gnome applications and libraries, most of which are currently in C.
 
Old 11-20-2004, 10:30 PM   #6
rmanocha
Member
 
Registered: Oct 2003
Location: Austin,TX
Distribution: Debian SID-->fully content-->Love APT,kernel 2.6.4
Posts: 327

Rep: Reputation: 30
you can also check out java -- http://java-gnome.sourceforge.net
 
  


Reply



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 apps..colors. RoaCh Of DisCor Mandriva 2 01-30-2005 10:27 PM
GTK apps in SuSE (9.1) equinox Linux - Distributions 5 12-17-2004 07:27 AM
Gtk-Warning but program still works... I close konsole, program closes Laptop2250 Linux - Software 2 11-14-2003 11:18 PM
gtk apps kvd General 2 07-27-2003 07:05 PM
gtk apps kvd Linux - Software 5 07-27-2003 06:26 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:49 PM.

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
Open Source Consulting | Domain Registration