[vte] widget: gtk: Pass NULL for geometry widget
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: gtk: Pass NULL for geometry widget
- Date: Mon, 15 Aug 2016 12:39:37 +0000 (UTC)
commit 28871b33b03d2f7e2df8c065189547add12f673d
Author: Christian Persch <chpe gnome org>
Date: Mon Aug 15 14:39:28 2016 +0200
widget: gtk: Pass NULL for geometry widget
Since gtk 3.20 the geometry hints are not applied if
the geometry widget passed is not NULL.
This makes geometry a bit better, but still not right. Need
to bring over the fixed to gnome-terminal from bug 760944.
src/vtegtk.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/vtegtk.cc b/src/vtegtk.cc
index 4be6f96..c9dbddc 100644
--- a/src/vtegtk.cc
+++ b/src/vtegtk.cc
@@ -3225,7 +3225,11 @@ vte_terminal_set_geometry_hints_for_window(VteTerminal *terminal,
vte_terminal_get_geometry_hints(terminal, &hints, MIN_ROWS, MIN_COLUMNS);
gtk_window_set_geometry_hints(window,
+#if GTK_CHECK_VERSION (3, 19, 5)
+ NULL,
+#else
&terminal->widget,
+#endif
&hints,
(GdkWindowHints)(GDK_HINT_RESIZE_INC |
GDK_HINT_MIN_SIZE |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]