added Glib::Markup::escape_text() to all strings in ZebraTreeViews
This commit is contained in:
parent
89695d798b
commit
db6135efb8
6 changed files with 38 additions and 28 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.4 $
|
||||
Version : $Revision: 1.5 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/BrowseItem.cxx,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -34,6 +34,7 @@
|
|||
#endif
|
||||
|
||||
#include <iostream>
|
||||
#include <glibmm.h>
|
||||
|
||||
#include "LiveSupport/Widgets/WidgetFactory.h"
|
||||
|
||||
|
@ -92,7 +93,8 @@ BrowseItem :: BrowseItem(
|
|||
pack_start(*scrolledWindow, Gtk::PACK_SHRINK, 5);
|
||||
|
||||
try {
|
||||
allString = *getResourceUstring("allStringForBrowse");
|
||||
allString = Glib::Markup::escape_text(
|
||||
*getResourceUstring("allStringForBrowse"));
|
||||
} catch (std::invalid_argument &e) {
|
||||
std::cerr << e.what() << std::endl;
|
||||
std::exit(1);
|
||||
|
@ -157,7 +159,8 @@ BrowseItem :: onShow(void) throw ()
|
|||
std::vector<Glib::ustring>::const_iterator valuesIt;
|
||||
for (valuesIt = values->begin(); valuesIt != values->end(); ++valuesIt) {
|
||||
row = *treeModel->append();
|
||||
row[modelColumns.column] = *valuesIt;
|
||||
row[modelColumns.column] = Glib::Markup::escape_text(
|
||||
*valuesIt);
|
||||
row[modelColumns.rowNumberColumn] = rowNumber++;
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.24 $
|
||||
Version : $Revision: 1.25 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/ScratchpadWindow.cxx,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -272,7 +272,8 @@ ScratchpadWindow :: showContents(void) throw ()
|
|||
default:
|
||||
break;
|
||||
}
|
||||
row[modelColumns.titleColumn] = *playable->getTitle();
|
||||
row[modelColumns.titleColumn] = Glib::Markup::escape_text(
|
||||
*playable->getTitle());
|
||||
row[modelColumns.rowNumberColumn] = rowNumber;
|
||||
|
||||
++it;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.20 $
|
||||
Version : $Revision: 1.21 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/SearchWindow.cxx,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -352,11 +352,17 @@ SearchWindow :: onSearch(Ptr<SearchCriteria>::Ref criteria)
|
|||
break;
|
||||
}
|
||||
|
||||
Ptr<const Glib::ustring>::Ref title = playable->getTitle();
|
||||
row[modelColumns.titleColumn] = title ? *title : "";
|
||||
Ptr<const Glib::ustring>::Ref
|
||||
title = playable->getTitle();
|
||||
row[modelColumns.titleColumn]
|
||||
= title ? Glib::Markup::escape_text(*title)
|
||||
: "";
|
||||
|
||||
Ptr<Glib::ustring>::Ref creator = playable->getMetadata("dc:creator");
|
||||
row[modelColumns.creatorColumn] = creator ? *creator : "";
|
||||
Ptr<Glib::ustring>::Ref
|
||||
creator = playable->getMetadata("dc:creator");
|
||||
row[modelColumns.creatorColumn]
|
||||
= creator ? Glib::Markup::escape_text(*creator)
|
||||
: "";
|
||||
|
||||
Ptr<time_duration>::Ref length = playable->getPlaylength();
|
||||
row[modelColumns.lengthColumn] = length ? to_simple_string(*length)
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.13 $
|
||||
Version : $Revision: 1.14 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/SimplePlaylistManagementWindow.cxx,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -242,7 +242,7 @@ SimplePlaylistManagementWindow :: showContents(void) throw ()
|
|||
row[modelColumns.startColumn]
|
||||
= to_simple_string(*playlistElem->getRelativeOffset());
|
||||
row[modelColumns.titleColumn]
|
||||
= *playable->getTitle();
|
||||
= Glib::Markup::escape_text(*playable->getTitle());
|
||||
row[modelColumns.lengthColumn]
|
||||
= to_simple_string(*playable->getPlaylength());
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.4 $
|
||||
Version : $Revision: 1.5 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/SimplePlaylistManagementWindow.h,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -74,20 +74,19 @@ using namespace LiveSupport::Widgets;
|
|||
* The layout of this window is roughly the following:
|
||||
* <pre><code>
|
||||
* +--- simple playlist management window --------+
|
||||
* | name: +-- name input ----+ |
|
||||
* | +-- playlist entries -------+ |
|
||||
* | | +-- entry1 -------------+ | |
|
||||
* | | +-- entry2 -------------+ | |
|
||||
* | name: +-- name input -------------+ |
|
||||
* | +-- playlist entries ----------------------+ |
|
||||
* | | +-- entry1 ----------------------------+ | |
|
||||
* | | +-- entry2 ----------------------------+ | |
|
||||
* | | ... | |
|
||||
* | +---------------------------+ |
|
||||
* | +-- save button ------------+ |
|
||||
* | +-- close button -----------+ |
|
||||
* | +-- status bar -------------+ |
|
||||
* | +------------------------------------------+ |
|
||||
* | +- save button -+ +- close button -+ |
|
||||
* | +-- status bar ----------------------------+ |
|
||||
* +----------------------------------------------+
|
||||
* </code></pre>
|
||||
*
|
||||
* @author $Author: fgerlits $
|
||||
* @version $Revision: 1.4 $
|
||||
* @version $Revision: 1.5 $
|
||||
*/
|
||||
class SimplePlaylistManagementWindow : public WhiteWindow,
|
||||
public LocalizedObject
|
||||
|
@ -100,7 +99,7 @@ class SimplePlaylistManagementWindow : public WhiteWindow,
|
|||
* Lists one playlist entry per row.
|
||||
*
|
||||
* @author $Author: fgerlits $
|
||||
* @version $Revision: 1.4 $
|
||||
* @version $Revision: 1.5 $
|
||||
*/
|
||||
class ModelColumns : public ZebraTreeModelColumnRecord
|
||||
{
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.14 $
|
||||
Version : $Revision: 1.15 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/UploadFileWindow.cxx,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -275,6 +275,7 @@ UploadFileWindow :: updateFileInfo(void) throw ()
|
|||
: playlength->seconds() + 1);
|
||||
lengthValueLabel->set_text(lengthStr.str());
|
||||
|
||||
statusBar->set_text("");
|
||||
isAudioClipValid = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue