lp948051 new tab button
authorJason Etheridge <jason@esilibrary.com>
Tue, 6 Mar 2012 14:39:05 +0000 (09:39 -0500)
committerThomas Berezansky <tsbere@mvlc.org>
Tue, 6 Mar 2012 19:40:55 +0000 (14:40 -0500)
Adds a new tab button to the right of the last tab in the main window.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/xul/staff_client/chrome/content/main/menu_frame_overlay.xul
Open-ILS/xul/staff_client/chrome/skin/media/images/licenses.txt
Open-ILS/xul/staff_client/chrome/skin/media/images/newtab.png [new file with mode: 0644]

index 3d42d29..ad4686e 100644 (file)
     <toolbox id="main_toolbox"/>
     <tabbox id="main_tabbox" flex="1" eventnode="window" handleCtrlTab="true">
         <hbox>
-            <arrowscrollbox orient="horizontal" id="main_tabs_scrollbox" flex="2">
+            <arrowscrollbox orient="horizontal" id="main_tabs_scrollbox" flex="1">
                 <tabs id="main_tabs">
                     <tab hidden="true" />
                 </tabs>
             </arrowscrollbox>
+            <toolbarbutton id="main_tabs_newbutton" class="tabs-button" style="list-style-image: url('chrome://open_ils_staff_client/skin/media/images/newtab.png');" command="cmd_new_tab" />
+            <spacer flex="10000"/>
             <toolbarbutton id="main_tabs_closebutton" class="tabs-closebutton close-button" command="cmd_close_tab" />
         </hbox>
         <tabpanels id="main_panels" flex="1">
index 4da3fe4..4cb04b8 100644 (file)
@@ -1,3 +1,8 @@
+newtab.png comes from the Mozilla source tree:
+http://mxr.mozilla.org/mozilla-central/source/browser/themes/winstripe/tabbrowser/newtab.png
+http://mxr.mozilla.org/mozilla-central/source/browser/themes/LICENSE
+"All files in this directory are assumed to be licensed under the tri-license (MPL/GPL/LGPL) used throughout this codebase."
+
 HILLBLU_lente_32x32 and HILLBLU_lente_toolbar derived from:
 http://commons.wikimedia.org/wiki/File:HILLBLU_lente.png
 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
diff --git a/Open-ILS/xul/staff_client/chrome/skin/media/images/newtab.png b/Open-ILS/xul/staff_client/chrome/skin/media/images/newtab.png
new file mode 100644 (file)
index 0000000..7cea7bd
Binary files /dev/null and b/Open-ILS/xul/staff_client/chrome/skin/media/images/newtab.png differ