[Xfce4-commits] [apps/xfce4-terminal] 01/01: Reset activity indicator for the active tab when focusing window
noreply at xfce.org
noreply at xfce.org
Thu Jun 28 18:13:45 CEST 2018
This is an automated email from the git hooks/post-receive script.
f 2 4 0 4 p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-terminal.
commit 7b495d329e5f31038be3374169e7799b1aa10d24
Author: Igor <f2404 at yandex.ru>
Date: Thu Jun 28 12:13:38 2018 -0400
Reset activity indicator for the active tab when focusing window
---
terminal/terminal-window.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 6f242a9..ba36c41 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -101,6 +101,8 @@ static gboolean terminal_window_scroll_event (GtkWidget
GdkEventScroll *event);
static gboolean terminal_window_map_event (GtkWidget *widget,
GdkEventAny *event);
+static gboolean terminal_window_focus_in_event (GtkWidget *widget,
+ GdkEventFocus *event);
static gboolean terminal_window_confirm_close (TerminalScreen *screen,
TerminalWindow *window);
static void terminal_window_size_push (TerminalWindow *window);
@@ -388,6 +390,7 @@ terminal_window_class_init (TerminalWindowClass *klass)
gtkwidget_class->style_set = terminal_window_style_set;
gtkwidget_class->scroll_event = terminal_window_scroll_event;
gtkwidget_class->map_event = terminal_window_map_event;
+ gtkwidget_class->focus_in_event = terminal_window_focus_in_event;
/**
* TerminalWindow::new-window
@@ -741,6 +744,20 @@ G_GNUC_END_IGNORE_DEPRECATIONS
static gboolean
+terminal_window_focus_in_event (GtkWidget *widget,
+ GdkEventFocus *event)
+{
+ TerminalWindow *window = TERMINAL_WINDOW (widget);
+
+ /* reset activity indicator for the active tab when focusing window */
+ terminal_screen_reset_activity (window->priv->active);
+
+ return (*GTK_WIDGET_CLASS (terminal_window_parent_class)->focus_in_event) (widget, event);
+}
+
+
+
+static gboolean
terminal_window_confirm_close (TerminalScreen *screen,
TerminalWindow *window)
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list