gtk+-2.20.0 兩個bug

來源:互聯網
上載者:User

gtk 官方最新的庫gtk+-2.20.0有兩個bug導致編譯失敗,可以通過下面方法修改:

(1)在gdk.symbols 871行後面增加:

  863 #if IN_HEADER(__GDK_KEYS_H__)

   864 #if IN_FILE(__GDK_KEYS_DIRECTFB_C__)

   865 gdk_keymap_get_direction

   866 gdk_keymap_get_entries_for_keycode

   867 gdk_keymap_get_entries_for_keyval

   868 gdk_keymap_get_for_display

   869 gdk_keymap_get_caps_lock_state

   870 gdk_keymap_lookup_key

   871 gdk_keymap_translate_keyboard_state

+872 gdk_keymap_map_virtual_modifiers                                                                        

+873 gdk_keymap_add_virtual_modifiers

   874 gdk_keyval_from_name

   875 gdk_keyval_name G_GNUC_CONST

   876 #endif

   877 #endif

(2)在gdk/directfb/gdkkeys-directfb.c 增加上面兩個函數的定義

+ 2001 gboolean

+ 2002 gdk_keymap_map_virtual_modifiers (GdkKeymap       *keymap,

+  2003                                       GdkModifierType *state)

+  2004 {

+  2005   g_warning("gdk_keymap_add_virtual_modifiers unimplemented /n");

+  2006   return TRUE;

+  2007 }

+  2008 void

+ 2009 gdk_keymap_add_virtual_modifiers (GdkKeymap       *keymap,

+  2010                                       GdkModifierType *state)

+  2011 {

+  2012   g_warning("gdk_keymap_map_virtual_modifiers unimplemented /n");

+  2013   return TRUE;

+  2014 }

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.