[gtkmm/gtkmm-3-24] demos: Fix the source code listing
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/gtkmm-3-24] demos: Fix the source code listing
- Date: Tue, 13 Aug 2019 18:26:23 +0000 (UTC)
commit a9c93bd7fb11e687fbab393bc9398345597be49c
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Tue Aug 13 20:24:25 2019 +0200
demos: Fix the source code listing
demos/gtk-demo/textwidget.cc | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/demos/gtk-demo/textwidget.cc b/demos/gtk-demo/textwidget.cc
index b4787c21..f31ee789 100644
--- a/demos/gtk-demo/textwidget.cc
+++ b/demos/gtk-demo/textwidget.cc
@@ -41,21 +41,19 @@ TextWidget::TextWidget(bool is_source)
{
m_TextView.set_wrap_mode (Gtk::WRAP_NONE);
- Glib::RefPtr<Gtk::TextBuffer::Tag> refTag = m_refTextBuffer->create_tag("source");
- refTag->property_font() = "Courier 12";
+ auto refTag = m_refTextBuffer->create_tag("source");
+ refTag->property_font() = "monospace";
refTag = m_refTextBuffer->create_tag("comment");
- refTag->property_foreground() = "red";
+ refTag->property_foreground() = "DodgerBlue";
refTag = m_refTextBuffer->create_tag("type");
refTag->property_foreground() = "ForestGreen";
refTag = m_refTextBuffer->create_tag("string");
-
refTag->property_foreground() = "RosyBrown";
refTag->property_weight() = Pango::WEIGHT_BOLD;
-
refTag = m_refTextBuffer->create_tag("control");
refTag->property_foreground() = "purple";
@@ -139,7 +137,8 @@ static const char* types[] =
"guint32",
"guchar",
"glong",
- "gboolean" ,
+ "gboolean",
+ "bool",
"gshort",
"gushort",
"gulong",
@@ -147,12 +146,14 @@ static const char* types[] =
"gldouble",
"gpointer",
"NULL",
+ "nullptr",
"GList",
"GSList",
"FALSE",
+ "false",
"TRUE",
+ "true",
"FILE ",
- "GtkObject ",
"GtkColorSelection ",
"GtkWidget ",
"GtkButton ",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]