Sophie

Sophie

distrib > Mandriva > 2009.1 > i586 > media > main-release-src > by-pkgid > a08fd532533fd7ec7fa3520053b8934f > files > 6

imwheel-1.0.0-0.20070707.4mdv2009.1.src.rpm



diff -p -up imwheel/util.c.pix imwheel/util.c
--- imwheel/util.c.pix	2008-01-14 08:16:58.000000000 +0000
+++ imwheel/util.c	2008-01-14 08:46:46.000000000 +0000
@@ -889,6 +889,18 @@ struct WinAction *getRC(void)
 					newwa[num_wa-1].button=PRIORITY;
 					newwa[num_wa-1].pri=pri;
 				}
+				else if(!strncasecmp(line+1,"Buttons=",8))
+				{
+					int j;
+					char *ButtonOpt = ButtonOpt = strtok(line+9, ",");
+					Printf("Buttons=");
+					for(j = 0; j < buttons_cnt; j++) {
+						buttons[j] = ButtonOpt ? atoi(ButtonOpt) : 0;
+						if (ButtonOpt) ButtonOpt = strtok(NULL, ",");
+						Printf("%d ", buttons[j]);
+					}
+					Printf("\n");
+				}
 				else
 					exitString("Unrecognized command : \"%s\"\n",line+1);
 				continue;