LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-21-2005, 12:16 AM   #1
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Rep: Reputation: 30
The advantage of GTK2 over GTK1?


I've always wondered about this.
I mean, back when firefox was available in gtk1 format I always used it instead of gtk2, simply because it was faster.
File-roller takes a couple of seconds to load, while gnozip loads instantly.

Would it be possible for GTK2 apps to become as fast as GTK1 apps? What extra features does GTK2 have which makes it slower? I certainly haven't noticed anything...

(I'm not really sure of the proper names of GTK1 or GTK2, but hopefully you know what I'm talking about.)
 
Old 10-21-2005, 12:39 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
GTK2 is newer and look a whole lot better Some of the differences are better theming support, GTK2 renders using Cairo which is a vector library although at this stage I believe it's marginally slower. Not sure about the final release but when they were testing it there was a speed decrease. They may have resolved that issue though, I'm not entirely sure. GTK2 supports more widgets out of the box.

If you used a lighter theme with no pixmaps and no exotic render engines then you could probably get it to be a bit snappier but (this is subjective) comparing Arch Linux packages, GTK1 is a measly 1.7MB compared to GTK2 which is 5.7MB, there is clearly a lot more stuff in there which wouldn't contribute to speed.
 
Old 10-21-2005, 12:42 AM   #3
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Original Poster
Rep: Reputation: 30
Heh, I forgot to mention I also prefer the themes of gtk1... Is there any way to make the buttons smaller in gtk2?
 
Old 10-21-2005, 12:52 AM   #4
zilvis
LQ Newbie
 
Registered: May 2005
Location: Lithuania
Distribution: Debian for ever!!!! suse for fun
Posts: 28

Rep: Reputation: 15
www.gtk.org
 
Old 10-21-2005, 01:57 AM   #5
caspervn
Member
 
Registered: Jul 2005
Location: Vietnam
Distribution: Fedora Core 2
Posts: 55

Rep: Reputation: 15
i think depend on your purpose that you would use which GTK is
 
Old 10-22-2005, 12:08 PM   #6
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Rep: Reputation: 33
All of you are English speaker so GTK1 is OK for you.
But GTK1 doesn't support unicode fonts. If you are a non-English and you want to see your native to be displayed correctly, you must switch to GTK2
 
  


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
compiling gtk1 app against gtk2 cs-cam Linux - Newbie 3 01-11-2005 02:53 AM
Gtk1 to Gtk2 jev-bird Linux - Software 0 08-12-2004 02:23 AM
How-To: Modifying UI font of gtk1 and gtk2 application zero0w Linux - Software 6 07-26-2004 07:02 AM
Configuring GTK1.2 over GTK2 Faecal Linux - Software 1 09-29-2003 04:30 AM
Using gtk1 themes with gtk2 apps? n_ick2000 Linux - Software 0 03-30-2003 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:12 AM.

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