Mercurial > projects > dwt-linux
comparison dwt/widgets/List.d @ 205:0fca38f4a7c0
List accepts null for item list.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 08 Mar 2008 22:59:15 +0100 |
parents | 08789b28bdf3 |
children | 380bad9f6852 |
comparison
equal
deleted
inserted
replaced
204:8ab2f71515ba | 205:0fca38f4a7c0 |
---|---|
1311 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> | 1311 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> |
1312 * </ul> | 1312 * </ul> |
1313 */ | 1313 */ |
1314 public void setItems (char[] [] items) { | 1314 public void setItems (char[] [] items) { |
1315 checkWidget(); | 1315 checkWidget(); |
1316 if (items is null) error (DWT.ERROR_NULL_ARGUMENT); | 1316 // DWT extension, allow null a null length list. |
1317 //if (items is null) error (DWT.ERROR_NULL_ARGUMENT); | |
1317 for (int i=0; i<items.length; i++) { | 1318 for (int i=0; i<items.length; i++) { |
1318 if (items [i] is null) error (DWT.ERROR_INVALID_ARGUMENT); | 1319 if (items [i] is null) error (DWT.ERROR_INVALID_ARGUMENT); |
1319 } | 1320 } |
1320 auto selection = OS.gtk_tree_view_get_selection (cast(GtkTreeView*)handle); | 1321 auto selection = OS.gtk_tree_view_get_selection (cast(GtkTreeView*)handle); |
1321 OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, null, null, udCHANGED); | 1322 OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, null, null, udCHANGED); |