Recent

Author Topic: My app is ugly on SUSE 10.0 KDE  (Read 12541 times)

johnf

  • New Member
  • *
  • Posts: 18
My app is ugly on SUSE 10.0 KDE
« on: March 03, 2006, 08:05:01 am »
I'm not trying to start a flame war or anything I just need info on how to fix it.  I'm running SUSE 10.0 KDE and the test apps I have created with Lazarus are butt ugly.  I tried re-building the LDL with GTK2 but I see no difference when running my app.  The buttons are flat and the rest of the controls are also flat.  The window appears to be normal but the controls look terrible.  The Gimp program looks OK which I think is using gtk2 so I think I have done something wrong.
John :cry:

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2673
RE: My app is ugly on SUSE 10.0 KDE
« Reply #1 on: March 03, 2006, 11:34:09 am »
Rebuilding the LCL alone doesn't change your app. You also have to compile your app with gtk2 as widgetset.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

johnf

  • New Member
  • *
  • Posts: 18
RE: My app is ugly on SUSE 10.0 KDE
« Reply #2 on: March 03, 2006, 04:53:31 pm »
Quote from: "Marc"
Rebuilding the LCL alone doesnGreat, how do I insure that I'm compiling my app with the gtk2 widgetset????  I'm a newbie to Lazarus!!
Thanks in advance

pch

  • Jr. Member
  • **
  • Posts: 51
    • http://ap-i.net
RE: My app is ugly on SUSE 10.0 KDE
« Reply #3 on: March 03, 2006, 05:25:31 pm »
->Menu - Project - Compiler Options - LCL Widget Type combo.

But Gtk1 can also look nice!
There is a lot of theme to download here http://themes.freshmeat.net/browse/923/
You can probably find one that match your desktop theme.

This link show how my software look with the Aero theme:
http://www.ap-i.net/skychart/index.php?module=photoshare&func=viewimage&iid=34

johnf

  • New Member
  • *
  • Posts: 18
RE: My app is ugly on SUSE 10.0 KDE
« Reply #4 on: March 03, 2006, 05:58:09 pm »
I'm also a newbie (as far as programming a app) with Linux.  So I'm not to sure how to change my KDE theme for gtk?  Yes you did make your app look very pretty.  But how did you do it?  The buttons etc on you show are great - just tell me how you change the standard buttons I'm seeing to the ones you have?

John

pch

  • Jr. Member
  • **
  • Posts: 51
    • http://ap-i.net
RE: My app is ugly on SUSE 10.0 KDE
« Reply #5 on: March 05, 2006, 10:58:02 am »
The problem for a detailed explanation is that about each distrib and KDE itself use there own set of files to tell Gtk what it must do.
Just ls .gtkrc* in your home directory and you find a lot of files containing an include mess.
Gtk itself use GTK_RC_FILES environment variable, the default value list all the Yast, Kde and other possible files.
For a clean install you need to look at each file, follow the include and guess the one that may be changed.

This explanation avoid this problem by replacing the GTK_RC_FILES value:
Extract the theme package to /usr/share/themes.
For the Aero theme the directory containing the Gtk1 files is then /usr/share/themes/Aero/gtk/
Now add this line to your .bashrc :
export GTK_RC_FILES=/usr/share/themes/Aero/gtk/gtkrc
Open a new shell to activate the change and launch your application.

Anonymous

  • Guest
RE: My app is ugly on SUSE 10.0 KDE
« Reply #6 on: March 08, 2006, 12:48:58 am »
Hi,
  I had the same problem in Suse 9.3. Here is what I found:

1-  Suse has a BAD support of GTK-1. Everything works well with GTK-2 but GTK-1 has NO control center: the module "control-center-2" is for GTK-2 but the module "control-center" for GTK-1 does NOT nork.  The application "gnomecc" will call another application "theme-selector-capplet" which is not supplied anymore.

2 - I have tried to install "theme switch application" from the web: http://themes.freshmeat.net/browse/923/ but it did NOT compile either. I think this is a debian application.

3 - I have rebuilt lazarus using GTK2 as the widgetset! This works!

I do not know in which state of development GTK-2 is but I think that GTK1 is in the past now !! Too bad. In Mandriva, the GTK1 theme is very nice that I never needed to change it, but in Suse, the solution will be to go to GTK2 as soon as possible.

Anonymous

  • Guest
RE: My app is ugly on SUSE 10.0 KDE
« Reply #7 on: March 08, 2006, 07:51:30 am »
This is bad  progression. Many distros drop gtk 1 support these times. And it's not only lazarus that still needs proper configured gtk1(. e.g. GnuCash). Mandriva shows that it's possible to make an gtk1 app look great.

barko

  • New Member
  • *
  • Posts: 45
Re: RE: My app is ugly on SUSE 10.0 KDE
« Reply #8 on: March 08, 2006, 11:18:08 am »
Quote from: "Anonymous"
Hi,
2 - I have tried to install "theme switch application" from the web: http://themes.freshmeat.net/browse/923/ but it did NOT compile either. I think this is a debian application.


click here. There is rpm for mandriva, suse and other distributions...

Avram

  • New member
  • *
  • Posts: 8
    • http://www.avramovic.info
RE: Re: RE: My app is ugly on SUSE 10.0 KDE
« Reply #9 on: February 03, 2007, 04:09:20 pm »
I have installed Lazarus from Gentoo portage, how can I do this:
"3 - I have rebuilt lazarus using GTK2 as the widgetset! This works!"

Avram

  • New member
  • *
  • Posts: 8
    • http://www.avramovic.info
RE: Re: RE: My app is ugly on SUSE 10.0 KDE
« Reply #10 on: February 08, 2007, 12:49:16 am »
Nevermind, got new version of Lazarus :P

eric

  • Sr. Member
  • ****
  • Posts: 267
RE: Re: RE: My app is ugly on SUSE 10.0 KDE
« Reply #11 on: February 08, 2007, 09:36:51 am »
I saw a quoted comment from one of the Suse lead developers to the effect that all the important programs are now ported to GTK2, so they can drop GTK1 support altogether. Whatever this actually means, it's clear that GTK1 is on the way out.

Eric

 

TinyPortal © 2005-2018