LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-17-2006, 11:05 AM   #46
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Rep: Reputation: 30

Does this mean that i also have to learn GTK+ programming...??
Are there any Good Resources to this??
Actually i am totally new to Programming in Linux, so if u can give some links where i can find Basic tutorials or E-Books....

Thanx in Advance
 
Old 06-17-2006, 11:08 AM   #47
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
If you want to use GTK+, then yeah, you'll have to learn GTK+. There's a tutorial on their website and it's pretty good IMO. Learn GTK+ 2, as 1.2 is quite old now.
 
Old 06-17-2006, 11:10 AM   #48
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Rep: Reputation: 30
& what are the TOOLS that i require for GTK+ 2 programming....??
 
Old 06-17-2006, 11:16 AM   #49
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You'll need the libraries installed obviously: GTK+ 2, GLib (not the same as the GNU C Library), possibly GDK, ATK, Pango and others. If you have GNOME installed, you'll have these installed already.

As for other tools, well, C/C++ compiler and other stuff you usually use for development. You can use Glade to design interfaces, but I've never used it and prefer to write all the code myself. Be aware that GTK+ is written in C, but you can use it with C++ as is. If you want C++ bindings for it, look at gtkmm as someone mentioned earlier.
 
Old 06-17-2006, 11:22 AM   #50
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Rep: Reputation: 30
You mean, gtkmm goes wid C++ and gtk goes with C....??
 
Old 06-17-2006, 11:24 AM   #51
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Rep: Reputation: 30
i want to C++ Programming, so i shud use gtkmm??
If i design the interface wid GLADE, how will i do the programming behind the interface??
Are there Any Good Tutorials available for GLADE...??
 
Old 06-17-2006, 12:40 PM   #52
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Whether or not you use gtkmm is entirely up to you. Perhaps you should read the gtkmm FAQ for more info to help you decide.
 
Old 06-17-2006, 01:16 PM   #53
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Quote:
i want to C++ Programming, so i shud use gtkmm??
You don't have to, you can use the calls and structs from the normal gtk library in C++, but gtkmm gives you an object oriented interface to gtk.

Quote:
If i design the interface wid GLADE, how will i do the programming behind the interface??
You can define the callbacks to the events (like button_clicked, widget_destroy,...) by using glade. Just look on the net for a tutorial to glade, it's really easy to use. Creating UI's in glade is much faster and more flexible then coding them.

Last edited by elluva; 06-17-2006 at 01:25 PM.
 
Old 06-17-2006, 04:36 PM   #54
fedora4002
Member
 
Registered: Mar 2004
Posts: 135

Rep: Reputation: 15
Eclipse is good for me.
 
Old 06-17-2006, 05:33 PM   #55
kickzha
LQ Newbie
 
Registered: Sep 2004
Location: augsburg homeboy
Distribution: debian sarge/sid
Posts: 17

Rep: Reputation: 0
Quote:
Originally Posted by elluva
Creating UI's in glade is much faster and more flexible then coding them.
...it may be faster, and it's 'getting standard' for your code the easier way, but if you want to get fine looking/behaving applets its the more advantage thing to code that things, glade brings up, by hand.

On beginning it's very nice to see how glade does its work, and how it organizes the code.

Take the Tutorial from the Homepage, and make the Hello World.

The documentation ist the only API in now of that kind. It was never seen that kind of easy simplicity, ( in firefox you could hold open index, and watch for the functions by 'search as you type' [ok, its no ide, but works so far] ).
 
Old 06-17-2006, 10:06 PM   #56
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by crash_override_me
i want to C++ Programming, so i shud use gtkmm??
If i design the interface wid GLADE, how will i do the programming behind the interface??
Are there Any Good Tutorials available for GLADE...??
First of all, C++ as such is GOOEY agnostic (just like C). If you
want to do C++ & GOOEY you'll need to learn SOME class-
library that helps you with this, because at the least you'll need
C++ wrappers around the X-primitives.

Qt, gtkmm, fox, wx are just a few of the more common ones.
They're all distinct, with a distinct look & feel, and varied sets
of functionality. My personal preference would be Qt :}


Cheers,
Tink
 
Old 06-18-2006, 02:13 AM   #57
Christmas
LQ Newbie
 
Registered: Apr 2006
Location: Romania, Bucharest
Distribution: Kubuntu 6.06 Dapper Drake
Posts: 7

Rep: Reputation: 0
I only use Kate (KDE Advanced Text Editor) which does all my job, as I don't need a more complicated application. I just edit my sources in Kate and use the built-in konsole to compile them, either with gcc or g++.
 
Old 06-18-2006, 02:51 AM   #58
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Quote:
Originally Posted by Christmas
I only use Kate (KDE Advanced Text Editor) which does all my job...
Well, that's ok for a small app with few dependencies. Once you need automake, autoconf,... and IDE is much easier. That's because the automake files are not that easy to write. Of course you have other build systems that do offer you an easier way, like scons. Still it's nice to be able to browse your class hierarchy when a project starts to get a substantial size.
 
Old 06-18-2006, 03:39 AM   #59
Christmas
LQ Newbie
 
Registered: Apr 2006
Location: Romania, Bucharest
Distribution: Kubuntu 6.06 Dapper Drake
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by elluva
Well, that's ok for a small app with few dependencies. Once you need automake, autoconf,... and IDE is much easier. That's because the automake files are not that easy to write. Of course you have other build systems that do offer you an easier way, like scons. Still it's nice to be able to browse your class hierarchy when a project starts to get a substantial size.
Well yes, you are right, but I use it only for educational purposes ATM, for learning not developing. Once I'll learn C well, I guess I'll need to move to a complete IDE.
 
Old 06-18-2006, 04:43 AM   #60
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
sure if you just want to learn C, kate is great . It's an easy language to learn, but a hard one to master. If you want to program stable C programs try to apply OO concepts, even though C is far from object oriented, you can still apply some of them with great results (like keeping stuff private, modularity,...).
Of course, this is completely OT .
 
  


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
Best IDE to learn IDE to leran on Linux alix123 Programming 4 01-07-2005 04:22 AM
RH9 &9.0 Benq CDRW 4012a IDE + IDE CDROM - Install - how to cgtueno Linux - Hardware 6 05-30-2004 02:43 PM
hpt372 ide controller and on-the-fly ide removeing captgoodnight Linux - Hardware 0 01-25-2004 12:38 AM
bad dmesg output when using ide-scsi boot parameter for IDE CD/DVD-ROM Locura Slackware 7 09-29-2003 02:36 AM
how2 make the kernel scan both PCI IDE and Mboard IDE channels? carboncopy Slackware 1 07-23-2003 03:26 PM

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

All times are GMT -5. The time now is 10:05 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