90 |
static EventQueue q; |
static EventQueue q; |
91 |
static boolean useGraphics2dSet; |
static boolean useGraphics2dSet; |
92 |
static boolean useGraphics2d; |
static boolean useGraphics2d; |
93 |
|
static Thread mainThread; |
94 |
|
|
95 |
public static boolean useGraphics2D() |
public static boolean useGraphics2D() |
96 |
{ |
{ |
125 |
// Register ImageIO SPIs |
// Register ImageIO SPIs |
126 |
GdkPixbufDecoder.registerSpis( IIORegistry.getDefaultInstance() ); |
GdkPixbufDecoder.registerSpis( IIORegistry.getDefaultInstance() ); |
127 |
|
|
128 |
new Thread ("GTK main thread") |
mainThread = new Thread ("GTK main thread") |
|
{ |
|
|
public void run () |
|
129 |
{ |
{ |
130 |
gtkMain (); |
public void run () |
131 |
} |
{ |
132 |
}.start (); |
gtkMain (); |
133 |
|
} |
134 |
|
}; |
135 |
|
mainThread.start (); |
136 |
} |
} |
137 |
|
|
138 |
public GtkToolkit () |
public GtkToolkit () |