Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > 1d1868a294dcc436a088edefa0d551af > files > 1

xsettings-kde-0.12-3.fc13.src.rpm

diff -ur xsettings-kde-0.12/xsettings-kde.c xsettings-kde-0.12-cursor-theme/xsettings-kde.c
--- xsettings-kde-0.12/xsettings-kde.c	2011-02-07 10:41:38.000000000 +0100
+++ xsettings-kde-0.12-cursor-theme/xsettings-kde.c	2011-03-14 19:02:47.000000000 +0100
@@ -57,6 +57,7 @@
  * Net/FallbackIconTheme => supported
  * Gtk/CanChangeAccels => not supported
  * Gtk/ColorPalette => no added value
+ * Gtk/CursorThemeName => supported
  * Gtk/FontName => supported
  * Gtk/IconSizes => not really useful
  * Gtk/KeyThemeName => not supported
@@ -90,12 +91,14 @@
 	KDE,
 	Icons,
 	MainToolbarIcons,
-	Directories
+	Directories,
+	Mouse
 };
 
-static char * file_name [2] = {
+static char * file_name [3] = {
 	"kdeglobals",
-	"kcmfonts"
+	"kcmfonts",
+	"kcminputrc"
 };
 
 int readString (char *key, char * buffer, char *xsetting_key) {
@@ -235,7 +238,7 @@
 		file = NULL;
 	}
 
-      for (file_index = 0 ; file_index < 2 ; file_index++) {
+      for (file_index = 0 ; file_index < 3 ; file_index++) {
 
 	user_file = 0;
 	do {
@@ -282,13 +285,17 @@
 					if (strncmp(buffer, "[KDE]", 5) == 0)
 						section = KDE;
 					else {
-						if (strncmp(buffer, "[Icons]", 5) == 0)
+						if (strncmp(buffer, "[Icons]", 7) == 0)
 							section = Icons;
 						else { 
 							if (strncmp(buffer, "[MainToolbarIcons]", 18) == 0)
 							section = MainToolbarIcons;
-							else 
-							section = Unknown;
+							else {
+								if (strncmp(buffer, "[Mouse]", 7) == 0)
+								section = Mouse;
+								else
+								section = Unknown;
+							}
 						}
 					}
 				}
@@ -389,6 +396,9 @@
 					}
 				}
 				break;
+			case Mouse:
+				notify |= readString ("cursorTheme", buffer, "Gtk/CursorThemeName");
+				break;
 			default: /* ignore the rest */
 				break;
 			}