/soc/2015/mmcc/main: 7e6dd89ba8bc: replace deprecated gdk_get_di...
Michael McConville
mmcconville at mykolab.com
Tue Jul 7 23:18:15 EDT 2015
Changeset: 7e6dd89ba8bcb79be83bd149cc17fe9222569b01
Author: Michael McConville <mmcconville at mykolab.com>
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
More information about the Commits
mailing list