GTK +-2.20.0 two bugs

Source: Internet
Author: User
Tags gtk

The latest GTK library GTK +-2.20.0 has two bugs that cause compilation failure. You can modify them using the following method:

(1) Add the following lines to the end of 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) Add the above two function definitions in 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}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.