[vte/vte-next] vteapp: Derive from VteTerminal
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-next] vteapp: Derive from VteTerminal
- Date: Sat, 28 May 2011 12:18:47 +0000 (UTC)
commit 244deb78ed33577eff0161fcbbd6cd2daa4888ca
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 0cc81d4..1a96b15 100644
--- a/src/vteapp.c
+++ b/src/vteapp.c
@@ -482,6 +482,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)
@@ -906,7 +940,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]