i create gdesktopappinfo with g_desktop_app_info_new (file_name);
and get gicon with g_app_info_get_icon( appInfoFromDesktopFile );
The problem is how can i get GtkPixbuf with the gicon?
i create gdesktopappinfo with g_desktop_app_info_new (file_name);
and get gicon with g_app_info_get_icon( appInfoFromDesktopFile );
The problem is how can i get GtkPixbuf with the gicon?
Hi,
In gtk3, you can use Gtk.IconTheme.lookup_by_gicon then Gtk.IconInfo.load_icon.
In gtk4, use Gtk.IconTheme.lookup_by_gicon to get a GdkPaintable, it’s more flexible to use than a GdkPixbuf.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.