GtkFontPeer.java: Use fallback when MissingResourceException is thrown.

2004-04-20  Mark Wielaard  <mark@klomp.org>

	* gnu/java/awt/peer/gtk/GtkFontPeer.java: Use fallback when
	MissingResourceException is thrown.
	* gnu/java/awt/peer/gtk/GtkToolkit.java (getFontPeer): Don't return
	null when a MissingResourceException is thrown. Should never happen.

From-SVN: r80888
This commit is contained in:
Mark Wielaard 2004-04-20 09:46:28 +00:00 committed by Michael Koch
parent a7b1dc36da
commit 7f6f517f8a
3 changed files with 25 additions and 8 deletions

View file

@ -377,12 +377,8 @@ public class GtkToolkit extends gnu.java.awt.ClasspathToolkit
*/
private FontPeer getFontPeer (String name, int style, int size)
{
try {
GtkFontPeer fp = new GtkFontPeer (name, style, size);
return fp;
} catch (MissingResourceException ex) {
return null;
}
GtkFontPeer fp = new GtkFontPeer (name, style, size);
return fp;
}
/**