Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do i change my default GTK2 style and font? (fluxbox)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
idl
Retired Dev
Retired Dev


Joined: 24 Dec 2002
Posts: 1728
Location: Nottingham, UK

PostPosted: Fri Dec 27, 2002 11:04 am    Post subject: How do i change my default GTK2 style and font? (fluxbox) Reply with quote

Is there some kind of gtk2 configuration app that can do this? I'm stuck with ugly fonts and want flat buttons instead of the raised ones.

Cheers
Back to top
View user's profile Send private message
timmfin
Guru
Guru


Joined: 04 Sep 2002
Posts: 336
Location: Maryland, USA

PostPosted: Fri Dec 27, 2002 2:14 pm    Post subject: Reply with quote

Code:
emerge  emerge /usr/portage/x11-themes/gtk-theme-switch/gtk-theme-switch-1.0.1.ebuild gtk-theme-switch

Code:
switch
will change gtk themes and fonts and
Code:
switch2
will change gtk2 themes and fonts. Just make sure that when you run them you run them as the correct user. If you run them as root then you will only change the themes for the windows that root opens.
Back to top
View user's profile Send private message
idl
Retired Dev
Retired Dev


Joined: 24 Dec 2002
Posts: 1728
Location: Nottingham, UK

PostPosted: Fri Dec 27, 2002 3:31 pm    Post subject: Reply with quote

yo, cheers for that :) It sorted out my font problem but when i click to apply a theme nothing happens :( even when i do preview they all look the same. :?
Back to top
View user's profile Send private message
sa
Guru
Guru


Joined: 10 Jun 2002
Posts: 450

PostPosted: Sat Dec 28, 2002 12:40 am    Post subject: Reply with quote

switch2 sees both gtk1 and gtk2 themes, If you try to enable a gtk1 theme in switch2, nothing happens... I made this hack that fixes it so that only gtk2 themes are listed. Im not sure if its correct to use chdir() to check for a directory, but it works much better than the original...

Code:
--- gtk-theme-switch-2.0.0rc2/switch.c  2002-05-25 06:54:35.000000000 +0000
+++ /mnt/2/home/sa/src/gtk-theme-switch-2.0.0rc2/switch.c       2002-12-13 05:12:59.000000000 +0000
@@ -66,6 +66,12 @@
                        if (!S_ISDIR(stats.st_mode)) continue;
                        if (strcmp(dent->d_name,"." ) == 0) continue;
                        if (strcmp(dent->d_name,"..") == 0) continue;
+            if ( (chdir(g_strconcat(
+                     dirname,"/",(dent->d_name),"/gtk-2.0",NULL))) < 0 ) {
+                printf("%s is not gtk2 theme\n", (dent->d_name));
+                continue;
+            }
+
                        g_hash_table_insert (hash, dent->d_name, dirname);
                        list = g_list_insert_sorted(list, g_strdup(dent->d_name), (GCompareFunc)strcmp);
                }
@@ -86,6 +92,12 @@
                        if (!S_ISDIR(stats.st_mode)) continue;
                        if (strcmp(dent->d_name, "." ) == 0) continue;
                        if (strcmp(dent->d_name, "..") == 0) continue;
+                        if ( (chdir(g_strconcat(
+                     dirname,"/",(dent->d_name),"/gtk-2.0",NULL))) < 0 ) {
+                printf("%s is not gtk2 theme\n", (dent->d_name));
+                continue;
+            }
+
                        g_hash_table_insert (hash, dent->d_name, dirname);
                        list =  g_list_insert_sorted(list, g_strdup(dent->d_name), (GCompareFunc)strcmp);
                }
Back to top
View user's profile Send private message
dioxmat
Bodhisattva
Bodhisattva


Joined: 04 May 2002
Posts: 709
Location: /home/mat

PostPosted: Sat Dec 28, 2002 8:04 pm    Post subject: Reply with quote

Quote:

Im not sure if its correct to use chdir() to check for a directory


opendir might be better yeah :)
Back to top
View user's profile Send private message
sessionID
Apprentice
Apprentice


Joined: 11 Nov 2002
Posts: 266
Location: hungary

PostPosted: Wed Jan 08, 2003 11:50 am    Post subject: Reply with quote

port001 wrote:
yo, cheers for that :) It sorted out my font problem but when i click to apply a theme nothing happens :( even when i do preview they all look the same. :?


I have the same problem... what is the solution? ;)
Back to top
View user's profile Send private message
hyperion
n00b
n00b


Joined: 26 Dec 2002
Posts: 31

PostPosted: Wed Jan 08, 2003 2:55 pm    Post subject: Reply with quote

I believe that the gnome-settings-daemon process must be running in order for gtk2 themes to be applied. The problem with this is that it also manages your wallpaper, so you get some fugliness with your fb styles.
Back to top
View user's profile Send private message
kappax
Apprentice
Apprentice


Joined: 30 Aug 2002
Posts: 273
Location: The Moon

PostPosted: Wed Jan 08, 2003 3:29 pm    Post subject: Reply with quote

i dont have any of the problems you guys are having :/ Works just fine for me.

Oh i emerged switch ver 1 fist then switch ver 2 , swtich 2 changes my gtk2 theme (right when i press apply) and swich does the gtk1 themes.
Back to top
View user's profile Send private message
RdsArts
Apprentice
Apprentice


Joined: 08 Oct 2002
Posts: 190
Location: MI, USA

PostPosted: Wed Jan 08, 2003 6:59 pm    Post subject: Reply with quote

Pure speculation, but do you have the engines emerged? You also need to emerge some theme engines if you want to use themes.

Pixbuf and Pixmap are the 2 big ones. (at least they work for all the themes I use :wink: ) Emerge them and you should have the engine for most themes.

Code:
emerge gtk-engines-pixbuf gtk-engines-pixmap -p
emerge gtk-engines-pixbuf gtk-engines-pixmap


Or, if you want EVERY theme under the sun, emerge the theme sets. (same as switch, GTK+ and GTK+2 themes have seperate ebuilds.)

Code:
emerge /usr/portage/x11-themes/gtk-themes/gtk-themes-1.0-r1.ebuild gtk-themes -p
emerge /usr/portage/x11-themes/gtk-themes/gtk-themes-1.0-r1.ebuild gtk-themes


After that, you should be good to go.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
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