Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cursor name instead of Gdk::CursorType #449

Merged

Commits on Aug 23, 2020

  1. Use cursor name instead of Gdk::CursorType

    GTK4で削除される`Gdk::CursorType`のかわりにカーソルテーマの名前[*]を
    使います。カーソル名の入力ミスを予防するため文字列リテラルを直接指定する
    かわりに定数を使います。
    
    非推奨のシンボルを無効化するマクロ
    ```
    GDK_DISABLE_DEPRECATED
    GTK_DISABLE_DEPRECATED
    GDKMM_DISABLE_DEPRECATED
    GTKMM_DISABLE_DEPRECATED
    GIOMM_DISABLE_DEPRECATED
    GLIBMM_DISABLE_DEPRECATED
    ```
    
    コンパイラのレポート
    ```
    ../src/article/drawareabase.cpp:5226:70: error: no matching function for call to 'Gdk::Cursor::create(Gdk::CursorType&)'
     5226 |             m_window->set_cursor( Gdk::Cursor::create( m_cursor_type ) );
          |                                                                      ^
    ```
    
    [*]: https://developer.gnome.org/gdk3/stable/gdk3-Cursors.html#gdk-cursor-new-from-name
    ma8ma committed Aug 23, 2020
    Configuration menu
    Copy the full SHA
    9cc1d18 View commit details
    Browse the repository at this point in the history