Ticket #1495: dports-fluxbox.diff
File dports-fluxbox.diff, 5.0 KB (added by jim@…, 20 years ago) |
---|
-
Portfile
old new 15 15 master_sites sourceforge 16 16 checksums md5 f097b97127461fa3f6f4af4048c75cfc 17 17 depends_lib lib:libX11.6:XFree86 lib:libXext.6:XFree86 18 patchfiles patch-src_Resource_hh patch-src_Tab_cc patch-src_Toolbar_cc \ 19 patch-src_fluxbox_hh patch-util_fbrun_FbRun_hh -
new file files/patch-src_Resource_hh
- + 1 --- src/Resource.hh.orig Thu Jul 29 21:04:30 2004 2 +++ src/Resource.hh Thu Jul 29 21:22:14 2004 3 @@ -66,16 +66,9 @@ 4 { 5 public: 6 Resource(ResourceManager &rm, T val, 7 - const std::string &name, const std::string &altname): 8 - Resource_base(name, altname), 9 - m_value(val), m_defaultval(val), 10 - m_rm(rm) 11 - { 12 - m_rm.addResource(*this); // add this to resource handler 13 - } 14 - virtual ~Resource() { 15 - m_rm.removeResource(*this); // remove this from resource handler 16 - } 17 + const std::string &name, const std::string &altname); 18 + 19 + virtual ~Resource(); 20 21 inline void setDefaultValue() { m_value = m_defaultval; } 22 void setFromString(const char *strval); 23 @@ -128,5 +121,18 @@ 24 static bool m_init; 25 ResourceList m_resourcelist; 26 }; 27 + 28 +template <typename T> 29 +Resource<T>::Resource(ResourceManager &rm, T val, const std::string &name, 30 + const std::string &altname): 31 + Resource_base(name, altname), m_value(val), m_defaultval(val), 32 + m_rm(rm) { 33 + m_rm.addResource(*this); // add this to resource handler 34 +} 35 + 36 +template <typename T> 37 +Resource<T>::~Resource() { 38 + m_rm.removeResource(*this); // remove this from resource handler 39 +} 40 41 #endif //_RESOURCE_HH_ -
new file files/patch-src_Tab_cc
- + 1 --- src/Tab.cc.orig Tue Feb 25 03:00:22 2003 2 +++ src/Tab.cc Tue Feb 25 03:01:31 2003 3 @@ -1011,14 +1011,14 @@ 4 Fluxbox *fluxbox = Fluxbox::instance(); 5 if (m_prev) { //if this have a chain to "the left" (previous tab) then set it's next to this next 6 m_prev->m_next = m_next; 7 - if(!m_next && !fluxbox->useTabs())//Only two tabs in list, remove tab from remaining window 8 + if(!m_next && !m_prev->m_prev && !fluxbox->useTabs())//Only two tabs in list, remove tab from remaining window 9 m_prev->m_win->setTab(false); 10 else 11 tmp = m_prev; 12 } 13 if (m_next) { //if this have a chain to "the right" (next tab) then set it's prev to this prev 14 m_next->m_prev = m_prev; 15 - if(!m_prev && !fluxbox->useTabs())//Only two tabs in list, remove tab from remaining window 16 + if(!m_prev && !m_next->m_next && !fluxbox->useTabs())//Only two tabs in list, remove tab from remaining window 17 m_next->m_win->setTab(false); 18 else 19 tmp = m_next; -
new file files/patch-src_Toolbar_cc
- + 1 diff -u -r src/Toolbar.cc.orig src/Toolbar.cc 2 --- src/Toolbar.cc.orig Sat Dec 7 22:41:57 2002 3 +++ src/Toolbar.cc Tue Oct 28 01:03:30 2003 4 @@ -204,6 +204,7 @@ 5 } 6 7 void Toolbar::reconfigure() { 8 + I18n *i18n = I18n::instance(); 9 int head_x = 0, 10 head_y = 0, 11 head_w, 12 @@ -318,6 +319,7 @@ 13 frame.clock_w = 0; 14 #else // !HAVE_STRFTIME 15 16 + using namespace FBNLS; 17 frame.clock_w = screen()->getToolbarStyle()->font.textWidth( 18 i18n->getMessage( 19 ToolbarSet, ToolbarNoStrftimeLength, 20 @@ -521,6 +523,7 @@ 21 void Toolbar::checkClock(bool redraw, bool date) { 22 time_t tmp = 0; 23 struct tm *tt = 0; 24 + I18n *i18n = I18n::instance(); 25 26 if ((tmp = time(NULL)) != -1) { 27 if (! (tt = localtime(&tmp))) { 28 @@ -545,9 +549,11 @@ 29 return; 30 #else // !HAVE_STRFTIME 31 char t[9]; 32 + using namespace FBNLS; 33 + 34 if (date) { 35 // format the date... with special consideration for y2k ;) 36 - if (screen()->getDateFormat() == Blackbox::B_EuropeanDate) { 37 + if (screen()->getDateFormat() == Fluxbox::B_EuropeanDate) { 38 sprintf(t, 39 i18n->getMessage( 40 ToolbarSet, ToolbarNoStrftimeDateFormatEu, 41 @@ -1101,6 +1107,8 @@ 42 CommonSet, CommonAutoHide, 43 "Auto hide"), 44 2); 45 + 46 + using namespace FBNLS; 47 insert(i18n->getMessage( 48 ToolbarSet, ToolbarEditWkspcName, 49 "Edit current workspace name"), -
new file files/patch-src_fluxbox_hh
- + 1 diff -u -r src/fluxbox.hh.orig src/fluxbox.hh 2 --- src/fluxbox.hh.orig Sat Dec 7 09:15:26 2002 3 +++ src/fluxbox.hh Mon Oct 27 23:34:49 2003 4 @@ -184,7 +184,7 @@ 5 6 #ifndef HAVE_STRFTIME 7 8 - enum { B_AMERICANDATE = 1, B_EUROPEANDATE }; 9 + enum { B_AmericanDate = 1, B_EuropeanDate }; 10 #endif // HAVE_STRFTIME 11 12 typedef std::vector<Fluxbox::Titlebar> TitlebarList; -
new file files/patch-util_fbrun_FbRun_hh
- + 1 diff -u -r util/fbrun/FbRun.hh.orig util/fbrun/FbRun.hh 2 --- util/fbrun/FbRun.hh.orig Sat Dec 7 09:15:27 2002 3 +++ util/fbrun/FbRun.hh Mon Oct 27 23:57:51 2003 4 @@ -29,6 +29,7 @@ 5 6 #include <string> 7 #include <vector> 8 +#include <cassert> 9 10 /** 11 Creates and managed a run window