FreeBSD Bugzilla – Attachment 195459 Details for
Bug 230020
[PATCH] chinese/pcmanx: Fix the code that incorrectly trim URL.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
merged patches for this port.
patch-0726 (text/plain), 2.27 KB, created by
holishing
on 2018-07-26 00:53:08 UTC
(
hide
)
Description:
merged patches for this port.
Filename:
MIME Type:
Creator:
holishing
Created:
2018-07-26 00:53:08 UTC
Size:
2.27 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 475340) >+++ Makefile (working copy) >@@ -3,6 +3,7 @@ > > PORTNAME= pcmanx > PORTVERSION= 1.3 >+PORTREVISION= 1 > CATEGORIES= chinese net gnome > MASTER_SITES= https://github.com/pcman-bbs/${PORTNAME}/releases/download/${PORTVERSION}/ > DISTNAME= ${PORTNAME}-gtk2-${PORTVERSION} >Index: files/patch-src-mainframe.cpp >=================================================================== >--- files/patch-src-mainframe.cpp (nonexistent) >+++ files/patch-src-mainframe.cpp (working copy) >@@ -0,0 +1,42 @@ >+--- src/mainframe.cpp 2016-02-16 20:31:52.000000000 +0800 >++++ src/mainframe.cpp2 2018-07-18 00:25:52.412313000 +0800 >+@@ -187,7 +187,7 @@ >+ LoadIcons(); >+ >+ >+- gtk_window_set_title (GTK_WINDOW (m_Widget), "PCManX "VERSION ); >++ gtk_window_set_title (GTK_WINDOW (m_Widget), "PCManX " VERSION ); >+ >+ m_pNotebook = new CNotebook(); >+ gtk_notebook_set_scrollable(GTK_NOTEBOOK(m_pNotebook->m_Widget), TRUE); >+@@ -285,9 +285,9 @@ >+ url = url.substr(first, last - first + 1); >+ >+ /* Remove telnet:// from url */ >+- first = url.find_first_not_of("telnet://"); >+- if (first != string::npos) >+- url.erase(0, first); >++ const string telnetPrefix = "telnet://"; >++ if(url.substr(0, telnetPrefix.size()) == telnetPrefix) >++ url.erase(0, telnetPrefix.size()); >+ >+ if ( site == NULL ) >+ site = &AppConfig.m_DefaultSite; >+@@ -1677,7 +1677,7 @@ >+ m_pView = view; >+ if( !m_pView || !m_pView->GetCon() ) >+ { >+- gtk_window_set_title (GTK_WINDOW (m_Widget), "PCManX "VERSION ); >++ gtk_window_set_title (GTK_WINDOW (m_Widget), "PCManX " VERSION ); >+ gtk_entry_set_text( GTK_ENTRY(m_URLEntry), ""); >+ return; >+ } >+@@ -1690,7 +1690,7 @@ >+ if( ! con->IsClosed() ) >+ m_pNotebook->SetPageTitle( m_pView, title ); >+ >+- title += " - PCManX "VERSION; >++ title += " - PCManX " VERSION; >+ gtk_window_set_title (GTK_WINDOW (m_Widget), title.c_str() ); >+ >+ char time_str[100]; > >Property changes on: files/patch-src-mainframe.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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 230020
:
195427
|
195428
|
195429
|
195459
|
195460