[evolution/gnome-3-20] Bug 765102 - [Wayland] Tooltips for calendar events are misplaced
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-20] Bug 765102 - [Wayland] Tooltips for calendar events are misplaced
- Date: Fri, 15 Apr 2016 18:53:37 +0000 (UTC)
commit c5e3a836e1bf4b30441eeda2d94cf5953972372b
Author: Milan Crha <mcrha redhat com>
Date: Fri Apr 15 20:50:43 2016 +0200
Bug 765102 - [Wayland] Tooltips for calendar events are misplaced
calendar/gui/e-calendar-view.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index d61f529..57cf000 100644
--- a/calendar/gui/e-calendar-view.c
+++ b/calendar/gui/e-calendar-view.c
@@ -1739,7 +1739,7 @@ tooltip_window_destroyed_cb (gpointer user_data,
gboolean
e_calendar_view_get_tooltips (const ECalendarViewEventData *data)
{
- GtkWidget *label, *box, *hbox, *ebox, *frame;
+ GtkWidget *label, *box, *hbox, *ebox, *frame, *toplevel;
const gchar *str;
gchar *tmp, *tmp1 = NULL, *tmp2 = NULL;
ECalComponentOrganizer organiser;
@@ -1929,6 +1929,13 @@ e_calendar_view_get_tooltips (const ECalendarViewEventData *data)
}
pevent->tooltip = gtk_window_new (GTK_WINDOW_POPUP);
+
+ toplevel = gtk_widget_get_toplevel (GTK_WIDGET (data->cal_view));
+ if (GTK_IS_WINDOW (toplevel)) {
+ gtk_window_group_add_window (gtk_window_get_group (GTK_WINDOW (toplevel)), GTK_WINDOW
(pevent->tooltip));
+ gtk_window_set_transient_for (GTK_WINDOW (pevent->tooltip), GTK_WINDOW (toplevel));
+ }
+
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type ((GtkFrame *) frame, GTK_SHADOW_IN);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]