cht電腦資訊gcin已解決問題
adm Find login register

請問這個 patch

swyear
joined: 2007-10-04
posted: 127
promoted: 4
bookmarked: 0
1subject: 請問這個 patchPromote 0 Bookmark 02012-02-05quote  

--- gtk-im/gtkimcontextgcin.c-orig      2011-10-13 23:46:25.000000000 +0800
+++ gtk-im/gtkimcontextgcin.c   2011-10-14 00:23:33.000000000 +0800
@@ -142,7 +142,7 @@
     return;

   if (!context_xim->gcin_ch) {
-    if (!(context_xim->gcin_ch = gcin_im_client_open(GDK_DISPLAY())))
+    if (!(context_xim->gcin_ch = gcin_im_client_open(GDK_DISPLAY_XDISPLAY(gdk_display_get_default()))))
       perror("cannot open gcin_ch");
 #if 1
     context_xim->timeout_handle = 0;

是否有必要?

eliu

joined: 2007-08-09
posted: 11451
promoted: 617
bookmarked: 187
新竹, 台灣
2subject: Promote 0 Bookmark 02012-02-08quote  

GDK_DISPLAY has been deprecated since version 2.22.

不懂為什麼 code 為什麼要愈變愈多。

edited: 1

cht電腦資訊gcin已解決問題
adm Find login register
views:4660