comparison dwt/widgets/Combo.d @ 241:4653e99936cf

Fix missing switch default in Combo
author Frank Benoit <benoit@tionex.de>
date Mon, 12 May 2008 19:27:09 +0200
parents ce446666f5a2
children 5a30aa9820f3
comparison
equal deleted inserted replaced
240:ce446666f5a2 241:4653e99936cf
1280 } 1280 }
1281 } 1281 }
1282 } 1282 }
1283 break; 1283 break;
1284 } 1284 }
1285 default:
1285 } 1286 }
1286 } 1287 }
1287 return super.gtk_event_after(widget, event); 1288 return super.gtk_event_after(widget, event);
1288 } 1289 }
1289 1290
1370 break; 1371 break;
1371 case OS.GDK_Page_Down: 1372 case OS.GDK_Page_Down:
1372 case OS.GDK_KP_Page_Down: 1373 case OS.GDK_KP_Page_Down:
1373 newIndex = items.length - 1; 1374 newIndex = items.length - 1;
1374 break; 1375 break;
1376 default:
1375 } 1377 }
1376 if (newIndex !is oldIndex) { 1378 if (newIndex !is oldIndex) {
1377 OS.g_signal_handlers_block_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, null, null, udCHANGED); 1379 OS.g_signal_handlers_block_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, null, null, udCHANGED);
1378 OS.gtk_combo_box_set_active (handle, newIndex); 1380 OS.gtk_combo_box_set_active (handle, newIndex);
1379 OS.g_signal_handlers_unblock_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, null, null, udCHANGED); 1381 OS.g_signal_handlers_unblock_matched (handle, OS.G_SIGNAL_MATCH_DATA, 0, 0, null, null, udCHANGED);