[gnome-terminal/gnome-3-28] window: Remove redundant function call
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/gnome-3-28] window: Remove redundant function call
- Date: Wed, 4 Apr 2018 07:02:48 +0000 (UTC)
commit 8b0b6cbe219166c28ec8639f8a1e8cdda9122a8d
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Apr 3 18:59:11 2018 +0200
window: Remove redundant function call
Setting GtkMenu:attach-widget will also set the GdkScreen. There's no
need to set it separately.
For what it's worth, the previous GtkUIManager based code wasn't
explicitly setting the GdkScreen either.
Fallout from 0820b3853a3b7c629a93fa820d5372eac1760686
https://bugzilla.gnome.org/show_bug.cgi?id=794935
(cherry picked from commit ea8776e7713221e31c9b62c9157db8bbe7e3c694)
src/terminal-window.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 40ddac9..65c90f0 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -325,7 +325,6 @@ context_menu_new (GMenuModel *menu,
popup_menu = gtk_menu_new_from_model (menu);
gtk_style_context_add_class (gtk_widget_get_style_context (popup_menu),
GTK_STYLE_CLASS_CONTEXT_MENU);
- gtk_menu_set_screen (GTK_MENU (popup_menu), gtk_widget_get_screen (widget));
gtk_menu_attach_to_widget (GTK_MENU (popup_menu), widget,
(GtkMenuDetachFunc)popup_menu_detach_cb);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]