comparison dwt/widgets/Widget.d @ 319:57e961636f92

fix Widget setDataStr, getDataStr typos
author Frank Benoit <benoit@tionex.de>
date Fri, 19 Sep 2008 22:29:48 +0200
parents 827aebee255f
children 4bffbf81e2d6
comparison
equal deleted inserted replaced
318:827aebee255f 319:57e961636f92
598 if (key ==/*eq*/ tablekey ) return table [i+1]; 598 if (key ==/*eq*/ tablekey ) return table [i+1];
599 } 599 }
600 } 600 }
601 return null; 601 return null;
602 } 602 }
603 public Object getDataStr (String key) { 603 public String getDataStr (String key) {
604 return stringcast( getData(key) ); 604 return stringcast( getData(key) );
605 } 605 }
606 606
607 /** 607 /**
608 * Returns the <code>Display</code> that is associated with 608 * Returns the <code>Display</code> that is associated with
1486 } 1486 }
1487 } 1487 }
1488 } 1488 }
1489 } 1489 }
1490 } 1490 }
1491 public void setDataStr (String key, Object value) { 1491 public void setDataStr (String key, String value) {
1492 setData(key, stringcast(value)); 1492 setData(key, stringcast(value));
1493 } 1493 }
1494 1494
1495 void setForegroundColor (GtkWidget* handle, GdkColor* color) { 1495 void setForegroundColor (GtkWidget* handle, GdkColor* color) {
1496 auto style = OS.gtk_widget_get_modifier_style (handle); 1496 auto style = OS.gtk_widget_get_modifier_style (handle);