summaryrefslogtreecommitdiff
path: root/src/terminal-window.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-11-23 13:48:00 +0100
committerVictor Kareh <[email protected]>2022-07-18 08:31:26 -0400
commit5a89697d32317b45c70a15ce0e6c67ebced75251 (patch)
tree6b83415793135f5afc18ca57b82022bcadd37405 /src/terminal-window.c
parente81e15ed093783d496b5165bfacc021b5392020c (diff)
downloadmate-terminal-5a89697d32317b45c70a15ce0e6c67ebced75251.tar.bz2
mate-terminal-5a89697d32317b45c70a15ce0e6c67ebced75251.tar.xz
Remove time.h
Diffstat (limited to 'src/terminal-window.c')
-rw-r--r--src/terminal-window.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c
index c690dd2..0d3d1e9 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -106,7 +106,10 @@ struct _TerminalWindowPrivate
guint disposed : 1;
guint present_on_insert : 1;
- time_t focus_time;
+ /* Workaround until gtk+ bug #535557 is fixed */
+ guint icon_title_set : 1;
+
+ gint64 focus_time;
/* should we copy selection to clibpoard */
int copy_selection;
@@ -2430,7 +2433,7 @@ terminal_window_focus_in_event (GtkWidget *widget,
TerminalWindowPrivate *priv = window->priv;
if (event->in)
- priv->focus_time = time(NULL);
+ priv->focus_time = g_get_real_time () / G_USEC_PER_SEC;
return FALSE;
}