[vte] vteapp: Derive from VteTerminal
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] vteapp: Derive from VteTerminal
- Date: Sun, 6 Apr 2014 13:37:52 +0000 (UTC)
commit d9ac9d390c7e186d74854de0f6555fd558229e8c
Author: Christian Persch <chpe gnome org>
Date: Sat May 28 13:17:48 2011 +0200
vteapp: Derive from VteTerminal
src/vteapp.c | 36 +++++++++++++++++++++++++++++++++++-
1 files changed, 35 insertions(+), 1 deletions(-)
---
diff --git a/src/vteapp.c b/src/vteapp.c
index 90c2157..5d9e805 100644
--- a/src/vteapp.c
+++ b/src/vteapp.c
@@ -489,6 +489,40 @@ terminal_notify_cb(GObject *object,
g_value_unset(&value);
}
+/* Derived terminal class */
+
+typedef struct _VteappTerminal VteappTerminal;
+typedef struct _VteappTerminalClass VteappTerminalClass;
+
+struct _VteappTerminalClass {
+ VteTerminalClass parent_class;
+};
+struct _VteappTerminal {
+ VteTerminal parent_instance;
+};
+
+static GType vteapp_terminal_get_type(void);
+
+G_DEFINE_TYPE(VteappTerminal, vteapp_terminal, VTE_TYPE_TERMINAL)
+
+static void
+vteapp_terminal_class_init(VteappTerminalClass *klass)
+{
+}
+
+static void
+vteapp_terminal_init(VteappTerminal *terminal)
+{
+}
+
+static GtkWidget *
+vteapp_terminal_new(void)
+{
+ return g_object_new(vteapp_terminal_get_type(), NULL);
+}
+
+/* Command line options */
+
static int
parse_enum(GType type,
const char *string)
@@ -871,7 +905,7 @@ main(int argc, char **argv)
}
/* Create the terminal widget and add it to the scrolling shell. */
- widget = vte_terminal_new();
+ widget = vteapp_terminal_new();
terminal = VTE_TERMINAL (widget);
if (!dbuffer) {
gtk_widget_set_double_buffered(widget, dbuffer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]