Little fixes
authorHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Sat, 19 Dec 2009 07:27:41 +0000 (07:27 +0000)
committerHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Sat, 19 Dec 2009 07:27:41 +0000 (07:27 +0000)
lxappearance.desktop.in
src/main-dlg.c
src/main.c

index 36c0c03..16096cf 100644 (file)
@@ -1,12 +1,10 @@
 [Desktop Entry]
-Encoding=UTF-8
 _Name=Appearance
 _Comment=Customize the look of the desktop
 Exec=lxappearance
-Icon=gtk-preferences
+Icon=preferences-desktop-theme
 Terminal=false
 Type=Application
 StartupNotify=true
 Categories=Settings;DesktopSettings;X-LXDE-Settings;GTK;
 NotShowIn=GNOME;XFCE;
-
index b85ecc3..2002214 100644 (file)
@@ -117,8 +117,10 @@ static void write_rc_file( const char* path )
         fprintf( f, "gtk-icon-theme-name=\"%s\"\n", icon_theme_name );
         fprintf( f, "gtk-font-name=\"%s\"\n", font_name );
         fprintf( f, "gtk-toolbar-style=%d\n", tb_style );
+#if CURSOR_THEME
         fprintf( f, "gtk-cursor-theme-name=\"%s\"\n", cursor_theme_name );
         fprintf( f, "gtk-cursor-theme-size=%d\n", cursor_theme_size );
+#endif
 
         fprintf( f, "include \"%s/.gtkrc-2.0.mine\"\n", g_get_home_dir() );
 
@@ -165,8 +167,10 @@ static void write_lxsession_config()
     g_key_file_set_string( kf, "GTK", "sNet/IconThemeName", icon_theme_name );
     g_key_file_set_string( kf, "GTK", "sGtk/FontName", font_name );
     g_key_file_set_integer( kf, "GTK", "iGtk/ToolbarStyle", tb_style );
+#if CURSOR_THEME
     g_key_file_set_string( kf, "GTK", "sGtk/CursorThemeName", cursor_theme_name );
     g_key_file_set_integer( kf, "GTK", "iGtk/CursorThemeSize", cursor_theme_size );
+#endif
 
     data = g_key_file_to_data( kf, &len, NULL );
     g_key_file_free( kf );
index 5d6f1ea..f900663 100644 (file)
@@ -75,7 +75,7 @@ int main (int argc, char *argv[])
     gtk_widget_destroy( gtk_toolbar_new() );
 
     main_dlg = main_dlg_new();
-    gtk_window_set_icon_name( (GtkWindow*)main_dlg, GTK_STOCK_PREFERENCES );
+    gtk_window_set_icon_name( (GtkWindow*)main_dlg, "preferences-desktop-theme" );
 
     gtk_main ();