[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 4/8] gtk: Don't use deprecated vte_terminal_get_adjus
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 4/8] gtk: Don't use deprecated vte_terminal_get_adjustment |
Date: |
Tue, 29 Apr 2014 11:46:10 +0200 |
From: Cole Robinson <address@hidden>
Guard this with a VTE version check, since I'm not sure if this is backwards
compatible.
ui/gtk.c: In function ‘gd_vc_init’:
ui/gtk.c:1176:5: error: ‘vte_terminal_get_adjustment’ is deprecated (declared
at /usr/include/vte-2.90/vte/vtedeprecated.h:101)
[-Werror=deprecated-declarations]
Signed-off-by: Cole Robinson <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
ui/gtk.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ui/gtk.c b/ui/gtk.c
index a56678f..5cdc044 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -1251,7 +1251,11 @@ static GSList *gd_vc_init(GtkDisplayState *s,
VirtualConsole *vc, int index, GSL
vte_terminal_set_scrollback_lines(VTE_TERMINAL(vc->terminal), -1);
+#if VTE_CHECK_VERSION(0, 28, 0) && GTK_CHECK_VERSION(3, 0, 0)
+ vadjustment = gtk_scrollable_get_vadjustment(GTK_SCROLLABLE(vc->terminal));
+#else
vadjustment = vte_terminal_get_adjustment(VTE_TERMINAL(vc->terminal));
+#endif
scrolled_window = gtk_scrolled_window_new(NULL, vadjustment);
gtk_container_add(GTK_CONTAINER(scrolled_window), vc->terminal);
--
1.8.3.1
- [Qemu-devel] [PULL 0/8] gtk patch queue, Gerd Hoffmann, 2014/04/29
- [Qemu-devel] [PULL 2/8] configure: Re-run make if gtkabi/sdlabi is changed, Gerd Hoffmann, 2014/04/29
- [Qemu-devel] [PULL 5/8] gtk: Remove use of deprecated stock items, Gerd Hoffmann, 2014/04/29
- [Qemu-devel] [PULL 1/8] configure: Document --with-gtkabi, Gerd Hoffmann, 2014/04/29
- [Qemu-devel] [PULL 6/8] gtk: Use ctrl+alt+q for quit accelerator, Gerd Hoffmann, 2014/04/29
- [Qemu-devel] [PULL 3/8] gtk: Don't use deprecated gtk_image_menu_item_new_with_mnemonic, Gerd Hoffmann, 2014/04/29
- [Qemu-devel] [PULL 4/8] gtk: Don't use deprecated vte_terminal_get_adjustment,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 8/8] gtk: Fix accelerators being triggered twice with gtk3, Gerd Hoffmann, 2014/04/29
- [Qemu-devel] [PULL 7/8] gtk: Fix -serial vc, Gerd Hoffmann, 2014/04/29