vte r2111 - in trunk: doc/reference/tmpl src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: vte r2111 - in trunk: doc/reference/tmpl src
- Date: Mon, 6 Oct 2008 20:12:15 +0000 (UTC)
Author: chpe
Date: Mon Oct 6 20:12:15 2008
New Revision: 2111
URL: http://svn.gnome.org/viewvc/vte?rev=2111&view=rev
Log:
Bug 329108 â Please support setting X's URGENCY hint upon terminal beep
Modified:
trunk/doc/reference/tmpl/vte.sgml
trunk/src/vte.c
trunk/src/vte.h
trunk/src/vteseq.c
Modified: trunk/doc/reference/tmpl/vte.sgml
==============================================================================
--- trunk/doc/reference/tmpl/vte.sgml (original)
+++ trunk/doc/reference/tmpl/vte.sgml Mon Oct 6 20:12:15 2008
@@ -33,6 +33,13 @@
@window_title: The terminal's idea of what the window's title should be.
@icon_title: The terminal's idea of what the window's title should be when iconified.
+<!-- ##### SIGNAL VteTerminal::beep ##### -->
+<para>
+
+</para>
+
+ vteterminal: the object which received the signal.
+
<!-- ##### SIGNAL VteTerminal::char-size-changed ##### -->
<para>
Emitted whenever selection of a new font causes the values of the
Modified: trunk/src/vte.c
==============================================================================
--- trunk/src/vte.c (original)
+++ trunk/src/vte.c Mon Oct 6 20:12:15 2008
@@ -10918,6 +10918,8 @@
klass->set_scroll_adjustments = vte_terminal_set_scroll_adjustments;
+ klass->beep = NULL;
+
widget_class->set_scroll_adjustments_signal =
g_signal_new("set-scroll-adjustments",
G_TYPE_FROM_CLASS (klass),
@@ -11191,6 +11193,15 @@
NULL,
_vte_marshal_VOID__VOID,
G_TYPE_NONE, 0);
+
+ g_signal_new("beep",
+ G_OBJECT_CLASS_TYPE(klass),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET(VteTerminalClass, beep),
+ NULL,
+ NULL,
+ _vte_marshal_VOID__VOID,
+ G_TYPE_NONE, 0);
/* Bind Copy, Paste, Cut keys */
binding_set = gtk_binding_set_by_class(klass);
Modified: trunk/src/vte.h
==============================================================================
--- trunk/src/vte.h (original)
+++ trunk/src/vte.h Mon Oct 6 20:12:15 2008
@@ -105,8 +105,9 @@
GtkAdjustment *hadjustment,
GtkAdjustment *vadjustment);
+ void (*beep)(VteTerminal* terminal);
+
/* Padding for future expansion. */
- void (*vte_reserved2)(void);
void (*vte_reserved3)(void);
void (*vte_reserved4)(void);
Modified: trunk/src/vteseq.c
==============================================================================
--- trunk/src/vteseq.c (original)
+++ trunk/src/vteseq.c Mon Oct 6 20:12:15 2008
@@ -971,6 +971,8 @@
/* Visual bell. */
vte_sequence_handler_vb(terminal, match, match_quark, params);
}
+ g_signal_emit_by_name(terminal, "beep");
+
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]