Accepting request 818968 from home:AndreasStieger:branches:X11:lxde

fix submission

OBS-URL: https://build.opensuse.org/request/show/818968
OBS-URL: https://build.opensuse.org/package/show/X11:lxde/lxterminal?expand=0&rev=72
This commit is contained in:
Michael Vetter 2020-07-06 09:36:54 +00:00 committed by Git OBS Bridge
parent f372c7ba39
commit c91790ac84

View File

@ -1,28 +0,0 @@
From 8f14525dd957c8040f9059911ceb6067d2761019 Mon Sep 17 00:00:00 2001
From: SauronfromMordor <fe98em39ght6dv4@yandex.ru>
Date: Tue, 23 Jan 2018 02:17:36 +0300
Subject: [PATCH] Fixed GTK3 compilation warning
---
src/lxterminal.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/lxterminal.c b/src/lxterminal.c
index b4201d9..a3abd40 100644
--- a/src/lxterminal.c
+++ b/src/lxterminal.c
@@ -1531,7 +1531,11 @@ LXTerminal * lxterminal_initialize(LXTermWindow * lxtermwin, CommandArguments *
g_object_weak_ref(G_OBJECT(terminal->window), (GWeakNotify) terminal_window_exit, terminal);
/* Create a vertical box as the child of the toplevel window. */
+#if GTK_CHECK_VERSION(3, 0, 0)
+ terminal->box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 1);
+#else
terminal->box = gtk_vbox_new(FALSE, 1);
+#endif
gtk_container_add(GTK_CONTAINER(terminal->window), terminal->box);
/* Create the menu bar as the child of the vertical box. */
--
2.1.4