From 5275b0f738ad3eeab882463faaee96317626216d Mon Sep 17 00:00:00 2001
From: Jason Etheridge <jason@esilibrary.com>
Date: Tue, 6 Mar 2012 09:39:05 -0500
Subject: [PATCH] lp948051 new tab button

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>
---
 .../chrome/content/main/menu_frame_overlay.xul            |   4 +++-
 .../staff_client/chrome/skin/media/images/licenses.txt    |   5 +++++
 .../xul/staff_client/chrome/skin/media/images/newtab.png  | Bin 0 -> 237 bytes
 3 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 Open-ILS/xul/staff_client/chrome/skin/media/images/newtab.png

diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_overlay.xul b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_overlay.xul
index 3d42d29cdc..ad4686e3c1 100644
--- a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_overlay.xul
+++ b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_overlay.xul
@@ -17,11 +17,13 @@
     <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">
diff --git a/Open-ILS/xul/staff_client/chrome/skin/media/images/licenses.txt b/Open-ILS/xul/staff_client/chrome/skin/media/images/licenses.txt
index 4da3fe4eac..4cb04b8f06 100644
--- a/Open-ILS/xul/staff_client/chrome/skin/media/images/licenses.txt
+++ b/Open-ILS/xul/staff_client/chrome/skin/media/images/licenses.txt
@@ -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
index 0000000000000000000000000000000000000000..7cea7bdd8f7f073156e7fe505fa842ded15195c0
GIT binary patch
literal 237
zcmV<J022R+P)<h;3K|Lk000e1NJLTq000mG000sQ1^@s6QafI10002ANkl<Zc-qC&
zzYBsu7{>AL-*^ccYiLxWu^aj^bq(TDs8CCYtwDeMQ;)>Up$?uQ4Iem8`EvK7697LM
zJz!{PKzyMA^C8nk4EhF4aA0K}C?sG!V%-I#0o5Ilrd?8ix}IskKk{t3#yr~8VtYhV
zRK&IJ^Bp}=GZ0yaLwc>btVCYDh-=-CyqR=eVedQNpCGOqq}LEn`2*B%i0zQLtO5=G
n4z}qH6dq{LME>$KsZj%O*eX1Hw;$xg00000NkvXXu0mjfUa(*y

literal 0
HcmV?d00001

-- 
2.11.0