GtkComponentPeer.java (GtkComponentPeer): If it is a FileDialog and has dimensions of 0 by 0...
2004-01-16 Kim Ho <kho@redhat.com> * gnu/java/awt/peer/gtk/GtkComponentPeer.java (GtkComponentPeer): If it is a FileDialog and has dimensions of 0 by 0, then the initial size is set to size request plus insets. * gnu/java/awt/peer/gtk/GtkFileDialogPeer.java (gtkWidgetGetDimensions): Override method. * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c (gtkWidgetGetDimensions): Override method. Returns size request plus insets. From-SVN: r75993
This commit is contained in:
parent
79a76d653a
commit
2b8deefadd
4 changed files with 52 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/* GtkFileDialogPeer.java -- Implements FileDialogPeer with GTK
|
||||
Copyright (C) 1998, 1999, 2002 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998, 1999, 2002, 2004 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
|
@ -63,6 +63,7 @@ public class GtkFileDialogPeer extends GtkDialogPeer implements FileDialogPeer
|
|||
native void connectJObject ();
|
||||
native void connectSignals ();
|
||||
native void nativeSetFile (String file);
|
||||
native void gtkWidgetGetDimensions (int[] dims);
|
||||
|
||||
public void setFile (String fileName)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue