Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 273555 Details for
Bug 365179
app-misc/freemind: version bump to 0.9.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixes window title in ie Gnome 3
freemind-0.9.0-window-title.patch (text/plain), 1.37 KB, created by
Christopher Robin Elmersson
on 2011-05-17 06:53:37 UTC
(
hide
)
Description:
Fixes window title in ie Gnome 3
Filename:
MIME Type:
Creator:
Christopher Robin Elmersson
Created:
2011-05-17 06:53:37 UTC
Size:
1.37 KB
patch
obsolete
>diff -urN freemind/freemind/main/FreeMindStarter.java freemind_new/freemind/main/FreeMindStarter.java >--- freemind/freemind/main/FreeMindStarter.java 2011-02-18 10:06:18.000000000 +0100 >+++ freemind_new/freemind/main/FreeMindStarter.java 2011-05-16 22:32:28.000000000 +0200 >@@ -29,7 +29,9 @@ > import java.net.URL; > import java.util.Locale; > import java.util.Properties; >- >+import java.awt.Toolkit; >+import java.lang.IllegalAccessException; >+import java.lang.NoSuchFieldException; > import javax.swing.JOptionPane; > > /** >@@ -55,6 +57,22 @@ > starter.createUserDirectory(defaultPreferences); > Properties userPreferences = starter.readUsersPreferences(defaultPreferences); > starter.setDefaultLocale(userPreferences); >+ >+ // Christopher Robin Elmersson: set >+ Toolkit xToolkit = Toolkit.getDefaultToolkit(); >+ >+ try{ >+ java.lang.reflect.Field awtAppClassNameField = xToolkit.getClass().getDeclaredField("awtAppClassName"); >+ awtAppClassNameField.setAccessible(true); >+ try{ >+ awtAppClassNameField.set(xToolkit, "FreeMind"); >+ } catch(java.lang.IllegalAccessException ex){ >+ System.err.println("Could not set window name"); >+ } >+ } catch (NoSuchFieldException ex){ >+ System.err.println("Could not get awtAppClassName"); >+ } >+ > //use reflection to call : > // FreeMind.main(args, defaultPreferences, userPreferences, starter.getUserPreferencesFile(defaultPreferences)); > try {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 365179
:
273547
|
273549
|
273551
|
273553
| 273555 |
290437