[vte] widget: Move some methods to VteTerminalPrivate
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Move some methods to VteTerminalPrivate
- Date: Sun, 6 Dec 2015 18:50:34 +0000 (UTC)
commit f740a8a1753ae965afb5b417dc1b007ff1ce62ed
Author: Christian Persch <chpe gnome org>
Date: Sun Dec 6 19:49:38 2015 +0100
widget: Move some methods to VteTerminalPrivate
src/vte.cc | 12 +++++-------
src/vteinternal.hh | 3 +++
2 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 771c567..294a76d 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -9080,9 +9080,10 @@ _vte_terminal_fudge_pango_colors(VteTerminal *terminal, GSList *attributes,
}
/* Apply the attribute given in the PangoAttribute to the list of cells. */
-static void
-_vte_terminal_apply_pango_attr(VteTerminal *terminal, PangoAttribute *attr,
- VteCell *cells, guint n_cells)
+void
+VteTerminalPrivate::apply_pango_attr(PangoAttribute *attr,
+ VteCell *cells,
+ gsize n_cells)
{
guint i, ival;
PangoAttrInt *attrint;
@@ -9167,10 +9168,7 @@ VteTerminalPrivate::translate_pango_cells(PangoAttrList *attrs,
listiter != NULL;
listiter = g_slist_next(listiter)) {
attr = (PangoAttribute *)listiter->data;
- _vte_terminal_apply_pango_attr(m_terminal,
- attr,
- cells,
- n_cells);
+ apply_pango_attr(attr, cells, n_cells);
}
attr = (PangoAttribute *)list->data;
_vte_terminal_fudge_pango_colors(m_terminal,
diff --git a/src/vteinternal.hh b/src/vteinternal.hh
index 5ddff62..16a81ed 100644
--- a/src/vteinternal.hh
+++ b/src/vteinternal.hh
@@ -529,6 +529,9 @@ public:
void paint_area(GdkRectangle const* area);
void paint_cursor();
void paint_im_preedit_string();
+ void apply_pango_attr(PangoAttribute *attr,
+ VteCell *cells,
+ gsize n_cells);
void translate_pango_cells(PangoAttrList *attrs,
VteCell *cells,
gsize n_cells);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]