[vte] widget: Add CSS name for the terminal widget
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Add CSS name for the terminal widget
- Date: Thu, 14 Jan 2016 16:10:14 +0000 (UTC)
commit 3e17cbf2d35cd4c64cd8af2944a49407834ab41b
Author: Christian Persch <chpe gnome org>
Date: Thu Jan 14 17:05:33 2016 +0100
widget: Add CSS name for the terminal widget
src/vtegtk.cc | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/vtegtk.cc b/src/vtegtk.cc
index fb14d46..6f8dbcf 100644
--- a/src/vtegtk.cc
+++ b/src/vtegtk.cc
@@ -57,6 +57,8 @@
#define I_(string) (g_intern_static_string(string))
+#define VTE_TERMINAL_CSS_NAME "vte"
+
guint signals[LAST_SIGNAL];
GParamSpec *pspecs[LAST_PROP];
GTimer *process_timer;
@@ -622,6 +624,10 @@ vte_terminal_class_init(VteTerminalClass *klass)
widget_class->size_allocate = vte_terminal_size_allocate;
widget_class->screen_changed = vte_terminal_screen_changed;
+#if GTK_CHECK_VERSION(3, 19, 5)
+ gtk_widget_class_set_css_name(widget_class, VTE_TERMINAL_CSS_NAME);
+#endif
+
/* Initialize default handlers. */
klass->eof = NULL;
klass->child_exited = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]