Esempio n. 1
0
 void setOrientation(boolean create) {
   super.setOrientation(create);
   if ((parent.style & SWT.RIGHT_TO_LEFT) != 0 || !create) {
     int dir = (parent.style & SWT.RIGHT_TO_LEFT) != 0 ? OS.GTK_TEXT_DIR_RTL : OS.GTK_TEXT_DIR_LTR;
     OS.gtk_widget_set_direction(handle, dir);
     OS.gtk_container_forall(handle, display.setDirectionProc, dir);
   }
 }
Esempio n. 2
0
 void setOrientation(boolean create) {
   if ((parent.style & SWT.RIGHT_TO_LEFT) != 0 || !create) {
     int dir = (parent.style & SWT.RIGHT_TO_LEFT) != 0 ? OS.GTK_TEXT_DIR_RTL : OS.GTK_TEXT_DIR_LTR;
     if (handle != 0) OS.gtk_widget_set_direction(handle, dir);
   }
 }