Mercurial > projects > dwt-linux
comparison dwt/widgets/Composite.d @ 60:6537a52fde85
Text
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 12 Jan 2008 11:16:09 +0100 |
parents | 8cec8f536af3 |
children | 295b29fc7d13 |
comparison
equal
deleted
inserted
replaced
59:8cec8f536af3 | 60:6537a52fde85 |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2007 IBM Corporation and others. | 2 * Copyright (c) 2000, 2007 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | 3 * All rights reserved. This program and the accompanying materials |
4 * are made available under the terms of the Eclipse Public License v1.0 | 4 * are made available under the terms of the Eclipse Public License v1.0 |
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
459 } | 459 } |
460 tabList = newList; | 460 tabList = newList; |
461 } | 461 } |
462 | 462 |
463 void fixZOrder () { | 463 void fixZOrder () { |
464 Stdout.formatln( "{}: parent.fixZOrder gtk_container_get_children {:x}", __LINE__, parentingHandle() ); | |
465 Stdout.formatln( "=> {}", OS.gtk_container_get_children (cast(GtkContainer*)parentingHandle()) ); | |
466 if ((state & CANVAS) !is 0) return; | 464 if ((state & CANVAS) !is 0) return; |
467 auto parentHandle = parentingHandle (); | 465 auto parentHandle = parentingHandle (); |
468 auto parentWindow = OS.GTK_WIDGET_WINDOW (cast(GtkWidget*)parentHandle); | 466 auto parentWindow = OS.GTK_WIDGET_WINDOW (cast(GtkWidget*)parentHandle); |
469 if (parentWindow is null) return; | 467 if (parentWindow is null) return; |
470 GObject* userData; | 468 GObject* userData; |
481 } | 479 } |
482 windows = cast(GList*)OS.g_list_next (windows); | 480 windows = cast(GList*)OS.g_list_next (windows); |
483 } | 481 } |
484 OS.g_list_free (windowList); | 482 OS.g_list_free (windowList); |
485 } | 483 } |
486 Stdout.formatln( "{}: parent.fixZOrder gtk_container_get_children {:x}", __LINE__, parentingHandle() ); | |
487 Stdout.formatln( "=> {}", OS.gtk_container_get_children (cast(GtkContainer*)parentingHandle()) ); | |
488 } | 484 } |
489 | 485 |
490 override GtkWidget* focusHandle () { | 486 override GtkWidget* focusHandle () { |
491 if (socketHandle !is null) return socketHandle; | 487 if (socketHandle !is null) return socketHandle; |
492 return super.focusHandle (); | 488 return super.focusHandle (); |