[evolution/gnome-3-24] Bug 782210 - Divide message list and preview panel size proportionally ]I[
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-24] Bug 782210 - Divide message list and preview panel size proportionally ]I[
- Date: Fri, 30 Jun 2017 08:58:41 +0000 (UTC)
commit ae633f93202d332cd01b691b87596757443cfd68
Author: Milan Crha <mcrha redhat com>
Date: Fri Jun 30 10:51:02 2017 +0200
Bug 782210 - Divide message list and preview panel size proportionally ]I[
src/shell/e-shell-window.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/shell/e-shell-window.c b/src/shell/e-shell-window.c
index 6919c58..e04be83 100644
--- a/src/shell/e-shell-window.c
+++ b/src/shell/e-shell-window.c
@@ -918,6 +918,17 @@ shell_window_map_event (GtkWidget *widget,
return res;
}
+static gboolean
+shell_window_delete_event_cb (GtkWidget *widget,
+ GdkEventAny *event)
+{
+ g_return_val_if_fail (E_IS_SHELL_WINDOW (widget), FALSE);
+
+ e_alert_bar_clear (E_ALERT_BAR (E_SHELL_WINDOW (widget)->priv->alert_bar));
+
+ return FALSE;
+}
+
static void
e_shell_window_class_init (EShellWindowClass *class)
{
@@ -1205,6 +1216,9 @@ e_shell_window_init (EShellWindow *shell_window)
gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
GTK_STYLE_PROVIDER (css_provider),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+
+ g_signal_connect (shell_window, "delete-event",
+ G_CALLBACK (shell_window_delete_event_cb), NULL);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]