Okay, I'd like to write a simple C app for Linux (say Ubuntu with Gnome) that would do the following:
I can do that in Windows, but I've no idea how I could do that in Linux.
Thanks!
There are various "Hello World" examples for X11 programming.
Using GTK+: http://library.gnome.org/devel/gtk-tutorial/2.13/c39.html
Using Qt: http://doc.qt.nokia.com/latest/tutorials-widgets-toplevel.html
Using wxWidgets: http://www.wxwidgets.org/docs/tutorials/hello.htm
There are a lot more toolkits: Fox, FLTK, Tk, EFL ...
So far these have all been cross-platform, so let's have a look at X11-specific exampls:
This is using Xlib: http://en.literateprograms.org/Special:Downloadcode/Hello_World_(C,_Xlib)
And this is using Xcb: http://xcb.freedesktop.org/tutorial/basicwindowsanddrawing/