60 } |
60 } |
61 |
61 |
62 // **** deprecated2**** |
62 // **** deprecated2**** |
63 |
63 |
64 static UiIcon* get_icon(const char *name, int size, int scale) { |
64 static UiIcon* get_icon(const char *name, int size, int scale) { |
65 #ifdef UI_SUPPORTS_SCALE |
65 #if GTK_MAJOR_VERSION >= 4 |
|
66 GtkIconPaintable *info = gtk_icon_theme_lookup_icon(icon_theme, NULL, size, scale, GTK_TEXT_DIR_LTR, GTK_ICON_LOOKUP_FORCE_REGULAR); |
|
67 #elif defined(UI_SUPPORTS_SCALE) |
66 GtkIconInfo *info = gtk_icon_theme_lookup_icon_for_scale(icon_theme, name, size, scale, 0); |
68 GtkIconInfo *info = gtk_icon_theme_lookup_icon_for_scale(icon_theme, name, size, scale, 0); |
67 #else |
69 #else |
68 GtkIconInfo *info = gtk_icon_theme_lookup_icon(icon_theme, name, size, 0); |
70 GtkIconInfo *info = gtk_icon_theme_lookup_icon(icon_theme, name, size, 0); |
69 #endif |
71 #endif |
70 if(info) { |
72 if(info) { |