Re: Which icon for GTK_STOCK_EDIT?
- From: Tilo Villwock <codemusings gmail com>
- To: zahlenmeer gmx de, gtk-app-devel-list gnome org
- Subject: Re: Which icon for GTK_STOCK_EDIT?
- Date: Tue, 07 Mar 2017 07:40:59 +0100
Hello,
I think when it comes to icons you're not supposed to use the stock
item facilities anymore. I would recommend getting the
gtk3-icon-browser
and browse through the available icons. Once you found a suitable one
you can apply one by invoking the *_from_icon_name family of function
calls, e.g.:
gtk_button_new_from_icon_name('edit-cut', GTK_ICON_SIZE_BUTTON);
You appear to be right, though. At a glance I couldn't find a 'pure'
edit icon either.
Hope that helps.
--Tilo
Am Montag, den 06.03.2017, 20:13 +0100 schrieb zahlenmeer gmx de:
Stock items are deprecated and the documentation mostly shows which
named icon to use instead. Such information is missing for
GTK_STOCK_EDIT (although I assume it is missing for a good reason).
Now, I want to use an "edit" icon. Which one should I use? "gtk-edit"
seems to work, but probably not everywhere. Some themes have an
"edit"
icon, but not all. I also thought about "accessories-text-editor"
which
is at least a standard freedesktop icon and fits to some degree.
Maybe
someone here has faced the same decision and give me a hint?
Kind regards
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]