gnope php gtk gui gnope.org  

Themes using gnope distro of GTK2

 
Post new topic   Reply to topic    gnope.org Forum Index -> Installation problems
View previous topic :: View next topic  
Author Message
kingrs



Joined: 15 Jan 2006
Posts: 30
Location: Stafford, UK

PostPosted: Mon Jan 16, 2006 6:19 pm    Post subject: Themes using gnope distro of GTK2 Reply with quote

I have tried to get themes using the libpixmap.dll to work in the gnope distribution and made it work.

1.
From the glade2 directory copy glade2.exe and gtkthemeselector.exe to the gnope path
ie
c:\gnope

2.
Edit C:\gnope\etc\gtk-2.0\gtkrc and change the theme
gtk-theme-name = "H2O-gtk2-Ruby"
(Important: Clear out all other lines in this file.)

3.
Download the theme from http://art.gnome.org/themes/gtk2
ie
H20-gtk2-Ruby

Put this in c:\gnope\share\themes

4.
copy the engines from the glade2 for windows to the gnope engines directory:
ie.
C:\Glade2\lib\gtk-2.0\2.4.0\engines

C:\Gnope\lib\gtk-2.0\2.4.0\engines

5.
Run glade2 to check the themes are working.
Run gtkthemeselector to change the theme

6.
Build app using gtk2 and glade.


Cheers

Rob
Back to top
karlbowden



Joined: 18 Dec 2005
Posts: 21
Location: Taree, NSW, Australia

PostPosted: Wed Jan 18, 2006 5:34 am    Post subject: Reply with quote

Hey rob. What version gtk did the pixmap engine you are using come from?
And if possible what site did you get it from?

I have followed your instructions, but I only see colour changes on widgets, ie. it's not using the libpixmap.dll engine.

from: gtk-win32-2.8.8-rc2.exe

I know the pixmap engine works with it's install of gtk it came with, just not dropped into gnope.
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Wed Jan 18, 2006 9:10 am    Post subject: Reply with quote

karlbowden wrote:
What version gtk did the pixmap engine you are using come from?

Gnope itself installs and uses Gtk 2.6.9, if that is of any help for you.
Back to top
kingrs



Joined: 15 Jan 2006
Posts: 30
Location: Stafford, UK

PostPosted: Wed Jan 18, 2006 10:32 am    Post subject: libpixmap.dll 50kb 28/08/2003 Reply with quote

I had to re-do this to figure out which libpixmap.dll worked, the one that comes with glade2 for windows (v2.10.0 - 29k) does not, and there is not one in the gnope 1.0 - any chance this can be included in 1.1?

Download:
http://konap.sourceforge.net/gtk-themes-win32-2003-09-01.tar.gz

6mb download, copy the libpixmap.dll engine from the
gtk-themes-win32\lib\gtk-2.0\2.2.0\engines directory to your
share\themes\gtk-2.0\2.4.0\engines

Looks like going backwards a version but it works.

let me know if this works

Rob
Back to top
kingrs



Joined: 15 Jan 2006
Posts: 30
Location: Stafford, UK

PostPosted: Wed Jan 18, 2006 10:49 am    Post subject: Reply with quote

This is where I found the article about it:
http://mail.gnome.org/archives/gtk-app-devel-list/2003-September/msg00009.html

Maybe someone can recompile it for gtk+ 2.4.0 ?
Back to top
kingrs



Joined: 15 Jan 2006
Posts: 30
Location: Stafford, UK

PostPosted: Wed Jan 18, 2006 11:46 am    Post subject: Correction Reply with quote

Sorry correct that, the dll needs to be copied from
gtk-themes-win32\lib\gtk-2.0\2.2.0\engines
to
lib\gtk-2.0\2.4.0\engines


Rob
Back to top
karlbowden



Joined: 18 Dec 2005
Posts: 21
Location: Taree, NSW, Australia

PostPosted: Thu Jan 19, 2006 2:56 am    Post subject: Reply with quote

That did the trick spot on.

Great work guys.

I would also put in a +1 for seeing even just the pixmap engine (50kb) included in gnope. I have it deployed to a few machines at the automotive dealership I work at, using the wimp engine on xp machines, and the pixmap engine - vista theme on others. Most users here like the conststancy.

I also add a couple of standard php modules to the gnope install - curl and sqlite (also needs pdo). Other than that great work.

Karlos
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Thu Jan 19, 2006 9:03 am    Post subject: Reply with quote

karlbowden wrote:
I also add a couple of standard php modules to the gnope install - curl and sqlite (also needs pdo). Other than that great work.

I pondered long with the decision what modules to include in Gnope, but I can't include all - file size would be too big. Or doesn't that matter? 8 instead of 6 MiB?
Back to top
kingrs



Joined: 15 Jan 2006
Posts: 30
Location: Stafford, UK

PostPosted: Thu Jan 19, 2006 10:30 am    Post subject: Reply with quote

My additions would be:

ext\php_pdo.dll
ext\php_pdo_mysql.dll
ext\php_pdo_sqlite.dll

(total zipped size = 172k and gives mysql and sqlite support using pdo)

lib\gtk-2.0\2.4.0\engines\libpixmap.dll

share\themes\Metal\gtk-2.0\gtkrc

Set default theme in etc\gtk-2.0\gtkrc to metal

All thats needed then is to take the updated NDIS file and add the package that you need to install on the client machine, and recompile a new distro.
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Thu Jan 19, 2006 10:35 am    Post subject: Reply with quote

kingrs wrote:
Set default theme in etc\gtk-2.0\gtkrc to metal

That's a wish I can't fulfill - PHP-Gtk shall look as integrated as possible, thus I chose the Wimp-Theme. One could perhaps deliver some more engines and themes, but not as default theme.
Back to top
Osiris



Joined: 17 Dec 2005
Posts: 65

PostPosted: Thu Jan 19, 2006 10:44 am    Post subject: Reply with quote

cweiske wrote:

I pondered long with the decision what modules to include in Gnope, but I can't include all - file size would be too big. Or doesn't that matter? 8 instead of 6 MiB?


The Problem is, that every developer needs other packages within his application.
At the time you start to include one module, another developer has the wish to include the next module and so on.

While your gnope-PHP5-Version is the same, as the current PHP.net-Version, developers can easily download the modules they need.

I've done it so, because some PECL-Modules and Standard-modules have some nice additional features, I can use in my application

Greetings

Christian
Back to top
karlbowden



Joined: 18 Dec 2005
Posts: 21
Location: Taree, NSW, Australia

PostPosted: Fri Jan 20, 2006 9:40 am    Post subject: Reply with quote

I personally dont mind adding the extra modules I need, it's not too much hassel. 8 meg i dont mind to much either, i only need to download it once.

I do like wimp, but i have noticed that there are not as many icons on the default 'ok' and 'cancel' buttons etc.., but I would still use it. Looks nice and natural on xp.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> Installation problems All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.