Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

GTK+ bloat?

Name: Anonymous 2010-09-06 14:02

So, i recently came back to GUI programming.
Not being a particular friend of GUI, i still had a bit enthusiasm about GUI programming and learning the things associated with this.

But once i go to the GTK+ reference page and WTF is this shit, it so fucking bloated, it has a shitload of widgets. Dont get me even started on the functions, are they really needed?
And why in the fuck cant scrollbars be attached to windows by default? Why in the fucking shit would one do this explicitly?

And the fucking Gtk+ tutorial is terrible! Why do they not include pictures so one can see what is actually being done?

Anyways, Should i use QT instead(or maybe even use good old win32 api on XP)?

Also, share your experiences with GUIs and UIs in general, im eager to hear your stories.

Name: Anonymous 2010-09-06 14:26

Relevant to my interests. I tried IUP, and it was surprisingly usable, but some portions of it (IupTree comes to mind) are showstopper buggy.

Name: Anonymous 2010-09-06 14:28

>>1
I know in Swing you have independent scroll control objects to which you assign content objects (i.e., build a Component then build a JScrollPane to be used by that Component).  The justification in Java is, of course, that scrolling objects and window/pane objects are not the same thing.

No matter what the language is, the thing I always end up fighting with is what component layout/alignment/orientation mechanisms are available.  The only time I ever wrestle with the GUI implements themselves is when I have to fish in windows.h directly.  I'm still not terribly confident when I have to set everything up from scratch.

Name: Anonymous 2010-09-06 14:30

when i write i GUIs I like to just get a big canvas from whatever asshole of platform i'm on, and draw custom buttons etc.

Name: Anonymous 2010-09-06 15:57

Qt is superior. But then again Qt isn't just for GUI but a batteries included type of library. Or libraries to be more accurate. Also, Sepples.

Name: Anonymous 2010-09-06 16:47

>>5
Qt is great. It allows us freetard devs to write fart apps as well (for Symbian and Maemo).

Name: Anonymous 2010-09-06 16:59

>>6
The thing is I totally agree with this statement. Qt it's retard proof, it's nice.

Name: Anonymous 2010-09-06 17:11

>>5-7
Three people agreeing on such a thing? I'm sorry, but just to be safe, I'm going to have to reluctantly declare SPAWHBTC, otherwise it just feels weird.

Name: Anonymous 2010-09-06 17:54

Qt is an ugly C++ preprocessor. It wouldn't even be that bad if it was just plain seeples.

Name: Anonymous 2010-09-06 18:05

>>9
preprocessor
IHBT

Name: Anonymous 2010-09-06 18:19

Name: Anonymous 2010-09-06 19:08

>>11
Fuck, and I thought GObject was bad.

This is just downright offensive in a language that has inheritance.

Name: Anonymous 2010-09-06 19:38

>>9
So?

Name: Anonymous 2010-09-06 20:10

Whenever I read of complaints about bloat, the argument always goes something like, “x is bloated because it provides functions that I don't use”. Do these people imply that things would be better if the maintainers removed these unwanted features?

Name: Anonymous 2010-09-06 22:01

>>11
That is a very small part of Qt.

Name: Anonymous 2010-09-06 22:14

>>1
There are really only two different GUI toolkits that suck less than the other toolkits.  One is Qt, the other is Cocoa.  Qt "isn't so bad once you get past Moc".  Cocoa is much better except it only works on two platforms (Objective C is surprisingly nice, and you write most of your app in C anyway).  (You can also use GNUstep, but...)

You don't want to do GUI stuff in C, you'll have to write everything in callback functions which_sucks(gpointer data) { struct myobj *obj = data; }

It starts to suck much, much more when you get away from C/C#/C++/Objective-C.

And GTK ain't bloated just because it has things you don't want.  I don't think my car's bloated just because it has seats I never sit in.

Name: Anonymous 2010-09-07 0:37

>>9
U MENA LEIK BOOST::SIGNAL?
struct HelloWorld
{
  void operator()() const
  {
    std::cout << "Hello, World!" << std::endl;
  }
};

// ...

// Signal with no arguments and a void return value
boost::signal0<void> sig;

// Connect a HelloWorld slot
HelloWorld hello;
sig.connect(hello);

// Call all of the slots
sig();

Name: Anonymous 2010-09-07 1:41

Say, how is GUI programming on Linux?  I've only ever done algorithmic work and such in that environment.
What is working with the X Window System like?

Name: Anonymous 2010-09-07 1:58

>>18
Noone interfaces directly with X11. Noone.

Name: Anonymous 2010-09-07 3:29

>>18
What is working with the X Window System like?
Oh man.. Let's just shorten it down to "bad". If you don't believe me, then try

Name: Anonymous 2010-09-07 4:19

>>19
Who is this ``Noone"?

Name: Anonymous 2010-09-07 7:17

>>16
Ha ha! You don't go anywhere with anyone, or you don't have any friends or family.

Name: Anonymous 2010-09-07 7:49

>What is working with the X Window System like?

You don't want to program in its rawest form because it's even scarier than WinAPI. Let's take XCreateWindow for example


       Window XCreateWindow(Display *display, Window parent, int x, int y, unsigned int width, unsigned int
              height, unsigned int border_width, int depth, unsigned int class, Visual *visual, unsigned long
              valuemask, XSetWindowAttributes *attributes);


Though it's fun if you want to mess with Window Manager. Before I found Terminator, I used XReparentWindow to reparent two XTerms to newly created window(http://pastebin.com/MKUyMdKQ). I wonder if it's possible in windows.

Name: Anonymous 2010-09-07 7:55

>>12
It's not Qt's fault that Sepples lacks basic features and barely qualifies as a language that has inheritance.

Name: Anonymous 2010-09-07 8:34

It's Qt's for being implemented in Sepples.

Name: Anonymous 2010-09-07 8:49

>>19
Well, suckless.org brave it in a few places[1]

[1]: surf, slock, dmenu, not to mention dwm.

GTK+2.0 isn't that bad, if you use something like Glade to design your GUI. Parental Advisotry Content Warning: XML

Name: Anonymous 2010-09-07 11:32

I found this tutorial:
http://zetcode.com/tutorials/gtktutorial/

Its quite nice.

Also there is a Xorg programming "tutorial" on wikibooks, its less than minimal, but if you are curious you can check it out.

Name: Anonymous 2010-09-07 16:02

>>19

I learned X Window System programming for the hell of it.

It's not that hard, you just have to do a lot of initialization and signal processing otherwise your windows will hang every other click.

Once you have some general initialization and signal processing code, it's not too hard to implement it in most programs. I prefer it over GTK and the like, as well.

Name: Anonymous 2010-09-07 21:14

Win32 API on Windows, X11lib on *nix.

Name: Anonymous 2010-09-09 2:14

QT and the meta-object-compiler suck. Explain to me why GTK+ bloat in your case is bad? Or are you just making some sort of blanket statement so you sound smart about GUI programming?

Name: Anonymous 2010-11-03 5:31

Name: Anonymous 2011-01-31 20:38

<-- check em dubz

Name: Anonymous 2011-02-03 6:03


Don't change these.
Name: Email:
Entire Thread Thread List