[Xfce4-commits] [apps/xfce4-terminal] 01/01: Resolve deprecation warning

noreply at xfce.org noreply at xfce.org
Sat Oct 5 23:36:43 CEST 2019


This is an automated email from the git hooks/post-receive script.

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-terminal.

commit d222a6c1790268b16cdf6855de8d73f210d9c634
Author: Igor <f2404 at yandex.ru>
Date:   Sat Oct 5 17:36:06 2019 -0400

    Resolve deprecation warning
    
    G_TYPE_INSTANCE_GET_PRIVATE has been deprecated since glib 2.58.
---
 configure.ac.in            | 2 +-
 terminal/terminal-window.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac.in b/configure.ac.in
index bae2402..4bece7a 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -93,7 +93,7 @@ dnl *** Check for required packages ***
 dnl ***********************************
 XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.20.8])
 XDT_CHECK_PACKAGE([VTE], [vte-2.91], [0.38])
-XDT_CHECK_PACKAGE([GIO], [gio-2.0], [2.32.0])
+XDT_CHECK_PACKAGE([GIO], [gio-2.0], [2.38.0])
 XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.10.0])
 XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.10.0])
 
diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 4d2b0d3..7e3025c 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -465,7 +465,7 @@ terminal_window_init (TerminalWindow *window)
 
   GClosure *toggle_menubar_closure = g_cclosure_new (G_CALLBACK (terminal_window_toggle_menubar), window, NULL);
 
-  window->priv = G_TYPE_INSTANCE_GET_PRIVATE (window, TERMINAL_TYPE_WINDOW, TerminalWindowPrivate);
+  window->priv = terminal_window_get_instance_private (window);
 
   window->priv->preferences = terminal_preferences_get ();
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list