View previous topic :: View next topic |
Author |
Message |
crash3k n00b
Joined: 22 Feb 2005 Posts: 44
|
Posted: Mon May 02, 2005 8:59 pm Post subject: USE flags and toolkits |
|
|
So, not that this is important to me or anything, but one of the things I love about linux is the vast amount of WM's. I could play for days just emerging and trying new ones. Now i have a question about USE flags and SLOTS and how they apply to qt and gtk primarily. Let's say i wanted KVirc (just an example of a program that can use both) in KDE to use QT, but if i'm in a gtk based WM to use a gtk build of KVirc. Is there anyway to have builds using both using portages slots or something? |
|
Back to top |
|
|
CoN n00b
Joined: 08 Sep 2003 Posts: 39
|
Posted: Tue May 03, 2005 11:47 am Post subject: |
|
|
AFAIK there aren't many (if any at all) applications that use two different toolkits, it would mean an awful lot of duplicate code because of different function-names and function-parameters. There probably are some apps that allow you to choose the toolkit at compile-time, but I don't think there are any that do it at run-time.
But there exists some wrappers (like gtk-qt-engine) which do the opposite to achieve a more uniform look between gtk-apps and a qt-based wm, and if you could find one which does the same for qt-apps in a gtk-based wm you would perhaps get the effect your after.
EDITED because I'm still not fully awake _________________ God, root... what's the difference? |
|
Back to top |
|
|
okidit n00b
Joined: 22 Sep 2003 Posts: 15 Location: Mexico DF
|
Posted: Tue May 03, 2005 3:35 pm Post subject: |
|
|
Wel, well that's a question that's no so easy to answer, but I'm going to do my best.
First of all there are some packages that can use different toolkits to function, and the
vast mayority of this packages can be built with two or more different toolkits.
So how can this work? Usally all DE's use some env_variables that indicate if they are
running so if youre using GNOME and then you run an program whit the previous case,
it will show with the GTK toolkit.
I hope I didn't confuse you more, but in reality it's easy, it is the same principle like
console apps use, to know whethear they are running in a console or a xterm. |
|
Back to top |
|
|
crash3k n00b
Joined: 22 Feb 2005 Posts: 44
|
Posted: Wed May 04, 2005 6:10 pm Post subject: |
|
|
excellent, i'll give it a shot |
|
Back to top |
|
|
|