Programming for Linux Desktop

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help

Programming for Linux Desktop

Postby fobits on Tue Dec 11, 2012 8:25 pm

I've been writing hobbyist-level Windows programs for a long time. I write in C and much of the work is done by calling functions in the Windows API. These include CreateWindowEx(), ShowWindow(), DialogBox() and so on.

Is it possible to program for the MATE desktop like that? If so, where could I learn how to do it?

I've read a bit about Qt and Python, but those are much different languages and I would be starting over from scratch. I would like to stick with C if possible.
fobits
Level 1
Level 1
 
Posts: 4
Joined: Tue Dec 11, 2012 7:35 pm

Linux Mint is funded by ads and donations.
 

Re: Programming for Linux Desktop

Postby memilanuk on Tue Dec 11, 2012 9:48 pm

My limited understanding of things is that unlike Windows, there isn't just one primary api. There are various GUI tool kits - GTK, Qt4, Tk, wxWidgets etc. and there are language bindings for each tool kit for most of the major languages such as Python, C/C++, etc. If you already know C and can handle moving to OO code such as C++ you would probably be able to move to programming in any one of the various GUI tool kits without too much trouble. Python is often recommended for its shallower learning curve and relative platform independence - but if you're sticking mainly with Linux, that may not be as much of a concern.

One site that may be of interest to you is www.zetcode.com . They have tutorials on most of the major GUI tool kits with most of the popular languages, databases, etc.

HTH,

Monte
memilanuk
Level 1
Level 1
 
Posts: 31
Joined: Sat Dec 04, 2010 5:27 pm

Re: Programming for Linux Desktop

Postby fobits on Wed Dec 12, 2012 5:55 pm

Thank you, memilanuk, thank you very much.

The link which you provided is just what I've been looking for. The first sentence that I read was "...we will learn the basics of GUI programming in GTK+ and C language. " Paydirt! :D
fobits
Level 1
Level 1
 
Posts: 4
Joined: Tue Dec 11, 2012 7:35 pm

Re: Programming for Linux Desktop

Postby memilanuk on Wed Dec 12, 2012 5:59 pm

Glad to be of help ;)
memilanuk
Level 1
Level 1
 
Posts: 31
Joined: Sat Dec 04, 2010 5:27 pm

Re: Programming for Linux Desktop

Postby dalcde on Thu Dec 13, 2012 5:55 am

If you want to program for MATE, then you would need C and Gtk+. Documentation for GTK+ (v. 2) can be found here:
http://developer.gnome.org/gtk2/stable/
dalcde
Level 4
Level 4
 
Posts: 211
Joined: Fri May 13, 2011 8:15 am


Return to Other topics

Who is online

Users browsing this forum: Olotila and 8 guests