From 53e35c644694dba76776c88a839336f1a79b73dd Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" Date: Mon, 7 Jan 2008 22:32:46 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20399539=20-=20""Applications"=20prefpane?= =?UTF-8?q?=20is=20too=20narrow"=20(add=20tooltips)=20[p=3Ddao@mozilla.com?= =?UTF-8?q?=20(D=C3=83=C2=A3o=20Gottwald)=20r=3Dgavin=20ui-r=3Dbeltzner=20?= =?UTF-8?q?a=3Dblocking-firefox3+]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@242607 18797224-902f-48f8-a5cc-f745e15eee43 --- .../components/preferences/applications.js | 19 +++++++++++++++---- .../components/preferences/handlers.xml | 7 ++++--- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/mozilla/browser/components/preferences/applications.js b/mozilla/browser/components/preferences/applications.js index 73ff89aa387..02ffdc771be 100755 --- a/mozilla/browser/components/preferences/applications.js +++ b/mozilla/browser/components/preferences/applications.js @@ -1248,6 +1248,7 @@ var gApplicationsPane = { else label = this._prefsBundle.getString("alwaysAsk"); askMenuItem.setAttribute("label", label); + askMenuItem.setAttribute("tooltiptext", label); askMenuItem.setAttribute("image", ICON_URL_ASK); menuPopup.appendChild(askMenuItem); } @@ -1259,6 +1260,7 @@ var gApplicationsPane = { let label = this._prefsBundle.getFormattedString("liveBookmarksInApp", [this._brandShortName]); internalMenuItem.setAttribute("label", label); + internalMenuItem.setAttribute("tooltiptext", label); internalMenuItem.setAttribute("image", ICON_URL_LIVEMARK); menuPopup.appendChild(internalMenuItem); @@ -1273,6 +1275,7 @@ var gApplicationsPane = { var defaultMenuItem = document.createElementNS(kXULNS, "menuitem"); defaultMenuItem.setAttribute("action", Ci.nsIHandlerInfo.useSystemDefault); defaultMenuItem.setAttribute("label", handlerInfo.defaultDescription); + defaultMenuItem.setAttribute("tooltiptext", handlerInfo.defaultDescription); defaultMenuItem.setAttribute("image", this._getIconURLForSystemDefault(handlerInfo)); menuPopup.appendChild(defaultMenuItem); @@ -1289,10 +1292,13 @@ var gApplicationsPane = { let menuItem = document.createElementNS(kXULNS, "menuitem"); menuItem.setAttribute("action", Ci.nsIHandlerInfo.useHelperApp); + let label; if (possibleApp instanceof Ci.nsILocalHandlerApp) - menuItem.setAttribute("label", getDisplayNameForFile(possibleApp.executable)); + label = getDisplayNameForFile(possibleApp.executable); else - menuItem.setAttribute("label", possibleApp.name); + label = possibleApp.name; + menuItem.setAttribute("label", label); + menuItem.setAttribute("tooltiptext", label); menuItem.setAttribute("image", this._getIconURLForHandlerApp(possibleApp)); // Attach the handler app object to the menu item so we can use it @@ -1311,6 +1317,7 @@ var gApplicationsPane = { [handlerInfo.plugin.name, this._brandShortName]); pluginMenuItem.setAttribute("label", label); + pluginMenuItem.setAttribute("tooltiptext", label); pluginMenuItem.setAttribute("image", ICON_URL_PLUGIN); menuPopup.appendChild(pluginMenuItem); } @@ -1319,7 +1326,9 @@ var gApplicationsPane = { { let menuItem = document.createElementNS(kXULNS, "menuitem"); menuItem.setAttribute("oncommand", "gApplicationsPane.chooseApp(event)"); - menuItem.setAttribute("label", this._prefsBundle.getString("chooseApp")); + let label = this._prefsBundle.getString("chooseApp"); + menuItem.setAttribute("label", label); + menuItem.setAttribute("tooltiptext", label); menuPopup.appendChild(menuItem); } @@ -1331,7 +1340,9 @@ var gApplicationsPane = { handlerInfo.type != TYPE_MAYBE_FEED) { var saveMenuItem = document.createElementNS(kXULNS, "menuitem"); saveMenuItem.setAttribute("action", Ci.nsIHandlerInfo.saveToDisk); - saveMenuItem.setAttribute("label", this._prefsBundle.getString("saveFile")); + let label = this._prefsBundle.getString("saveFile"); + saveMenuItem.setAttribute("label", label); + saveMenuItem.setAttribute("tooltiptext", label); saveMenuItem.setAttribute("image", ICON_URL_SAVE); menuPopup.appendChild(saveMenuItem); } diff --git a/mozilla/browser/components/preferences/handlers.xml b/mozilla/browser/components/preferences/handlers.xml index ba00515e5e5..8ed083bb41e 100755 --- a/mozilla/browser/components/preferences/handlers.xml +++ b/mozilla/browser/components/preferences/handlers.xml @@ -61,12 +61,12 @@ - + - + @@ -77,13 +77,14 @@ - +