/soc/2015/mmcc/main: 7e6dd89ba8bc: replace deprecated gdk_get_di...

Michael McConville <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 7e6dd89ba8bcb79be83bd149cc17fe9222569b01
Author:	 Michael McConville <[email protected]>
Date:	 2015-07-07 23:18 -0400
Branch:	 default
URL: https://hg.pidgin.im/soc/2015/mmcc/main/rev/7e6dd89ba8bc

Description:

replace deprecated gdk_get_display()

diffstat:

 pidgin/libpidgin.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (17 lines):

diff --git a/pidgin/libpidgin.c b/pidgin/libpidgin.c
--- a/pidgin/libpidgin.c
+++ b/pidgin/libpidgin.c
@@ -692,12 +692,11 @@ int pidgin_start(int argc, char *argv[])
 
 	gui_check = gtk_init_check(&argc, &argv);
 	if (!gui_check) {
-		char *display = gdk_get_display();
+		const char *display = gdk_display_get_name(gdk_display_get_default());
 
 		printf("%s %s\n", PIDGIN_NAME, DISPLAY_VERSION);
 
 		g_warning("cannot open display: %s", display ? display : "unset");
-		g_free(display);
 #ifdef HAVE_SIGNAL_H
 		g_free(segfault_message);
 #endif

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.