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 icon theme instead of Gtk::Arrow #452

Merged
merged 1 commit into from Aug 29, 2020

Conversation

ma8ma
Copy link
Collaborator

@ma8ma ma8ma commented Aug 29, 2020

GTK4で廃止されるGtk::Arrowのかわりにアイコンテーマを使います。

GtkArrowのリファレンスより

GtkArrow has been deprecated; you can simply use a GtkImage with a suitable icon name, such as "pan-down-symbolic".

非推奨のシンボルを無効化するマクロ

GDK_DISABLE_DEPRECATED
GTK_DISABLE_DEPRECATED
GDKMM_DISABLE_DEPRECATED
GTKMM_DISABLE_DEPRECATED
GIOMM_DISABLE_DEPRECATED
GLIBMM_DISABLE_DEPRECATED

コンパイラのレポート

../src/skeleton/tabswitchbutton.h:20:14: error: 'Arrow' in namespace 'Gtk' does not name a type
   20 |         Gtk::Arrow m_arrow{ Gtk::ARROW_DOWN, Gtk::SHADOW_NONE };
      |              ^~~~~
../src/skeleton/menubutton.h:28:14: error: 'Arrow' in namespace 'Gtk' does not name a type
   28 |         Gtk::Arrow* m_arrow;
      |              ^~~~~

関連のissue: #229

GTK4で廃止される`Gtk::Arrow`のかわりにアイコンテーマを使います。

GtkArrowのリファレンス[*]より
> GtkArrow has been deprecated; you can simply use a GtkImage with
> a suitable icon name, such as "pan-down-symbolic".

非推奨のシンボルを無効化するマクロ
```
GDK_DISABLE_DEPRECATED
GTK_DISABLE_DEPRECATED
GDKMM_DISABLE_DEPRECATED
GTKMM_DISABLE_DEPRECATED
GIOMM_DISABLE_DEPRECATED
GLIBMM_DISABLE_DEPRECATED
```

コンパイラのレポート
```
../src/skeleton/tabswitchbutton.h:20:14: error: 'Arrow' in namespace 'Gtk' does not name a type
   20 |         Gtk::Arrow m_arrow{ Gtk::ARROW_DOWN, Gtk::SHADOW_NONE };
      |              ^~~~~
../src/skeleton/menubutton.h:28:14: error: 'Arrow' in namespace 'Gtk' does not name a type
   28 |         Gtk::Arrow* m_arrow;
      |              ^~~~~
```

[*]: https://developer.gnome.org/gtk3/stable/GtkArrow.html
@ma8ma ma8ma added gtk3 GTK3版に関するトピック refactoring コードの整理 (バグ修正でも機能変更でもない) labels Aug 29, 2020
@ma8ma ma8ma added this to In progress in State of JDim-v0.4.0+ via automation Aug 29, 2020
@ma8ma ma8ma merged commit 36ad31d into JDimproved:master Aug 29, 2020
State of JDim-v0.4.0+ automation moved this from In progress to Done Aug 29, 2020
@ma8ma ma8ma deleted the use-icon-theme-instead-of-gtk-arrow branch August 29, 2020 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gtk3 GTK3版に関するトピック refactoring コードの整理 (バグ修正でも機能変更でもない)
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant