PATCH: gdm and GTK themes
- From: Daniel Burrows <Daniel_Burrows brown edu>
- To: gnome-list gnome org
- Subject: PATCH: gdm and GTK themes
- Date: Tue, 16 Feb 1999 15:23:54 -0500
As far as I can tell, there's currently no way to get gdm to use GTK+
themes. I've made a quick patch that adds a config option, gtkrc, which is
the name of a gtk RC file to parse. It may not be the Right Thing to do
but it works for me until someone figures out what the Right Thing is.. :-)
Daniel
Index: gdmgreeter.c
===================================================================
RCS file: /cvs/gnome/gdm/src/gdmgreeter.c,v
retrieving revision 1.50
diff -u -r1.50 gdmgreeter.c
--- gdmgreeter.c 1999/02/08 22:43:34 1.50
+++ gdmgreeter.c 1999/02/16 20:21:25
@@ -75,6 +75,7 @@
gchar *GdmDefaultLocale;
gchar *GdmPidFile; /* Hack, not used in greeter */
gchar *GdmDefaultPath; /* Hack Part II */
+gchar *GdmGtkRC;
GtkWidget *greeterframe;
GtkWidget *gdmMain;
@@ -240,6 +241,7 @@
GdmNofaceImageFile= gnome_config_get_string("appearance/NoFaceImage");
GdmGlobalImageDir=gnome_config_get_string("appearance/GlobalImageDir");
GdmMessageFont=gnome_config_get_string("appearance/msgfont=-adobe-helvetica-bold-r-normal-*-*-180-*-*-*-*-*-*");
+ GdmGtkRC=gnome_config_get_string("appearance/gtkrc");
GdmShutdownMenu=gnome_config_get_int("system/ShutdownMenu=0");
GdmUserMaxFile=gnome_config_get_int("system/UserFileCutoffSize=65536");
@@ -1501,6 +1503,9 @@
gnome_init("gdmgreeter", VERSION, argc, argv);
gdm_greeter_parse_config();
+
+ if(GdmGtkRC&&*GdmGtkRC)
+ gtk_rc_parse(GdmGtkRC);
gdm_greeter_users_init();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]