Someone would have to correct me, but I don't think stock icons are even included as a fallback in GNOME anymore. Since you are aware that stock icons are deprecated at this point, I recommend that you port your code to use newer techniques since you are likely to get weird results on newer systems. Glib::RefPtr icon_file = icon->get_file() Ä«e aware that if there is no icon found that uses that name and size, the lookup_icon method will simply return an IconPaintable that renders the "missing icon". Instead of using this function, usually its better to create a , put your icon sets in the icon factory, add the icon factory to the list of default factories with gtk-icon-factory-add-default, and then use gtk-image-new-from-stock. Glib::RefPtr icon = icon_theme->lookup_icon("gtk-yes", 48) Sample stock sizes are , .Parameters stockid a stock icon id Returns a new GtkStatusIcon Since: 2. You can register your own stock icon names, see gtkiconfactoryadddefault () and gtkiconfactoryadd (). (An example of the more than one case is icons that depend on writing direction GTKSTOCKGOFORWARD uses the two themed icons gtk-stock-go-forward-ltr and gtk-stock-go-forward-rtl. Sample stock icon names are GTKSTOCKOPEN, GTKSTOCKQUIT. Glib::RefPtr icon_theme = Gtk::IconTheme::get_for_display(display) It turns out that internally stock images are generally defined in terms of one or more named icons. If you'd like to find this information out programmatically, you can do something like this: Glib::RefPtr display = Gtk::Widget::get_display() Use our licensed icons as the main element on printed or digital products. either user-defined images, or one of the stock icons that come with Gtk+. GTK - What does GTK stand for The Free Dictionary. Country flag Icons & Symbols New Non-expanded SVG file with customizable strokes and shapes. The Country column contains two cell renderers, one to display the flag. Where $HOME is the user's home directory, and $XDG_DATA_DIRS is any path where data files are stored. GTK is listed in the Worlds largest and most authoritative dictionary database of abbreviations and acronyms. 3 comments thekswenson commented on closed this as completed github-actions Sign up for free to subscribe to this conversation on GitHub.On systems that conform to the Cross-Desktop Group (XDG) specification (Unix-like systems) they can be in a theme's subfolder that is located in any of the following paths (order is by precedence): GitHub (Gtk+3) Gtk stock icons not found 2319 Closed thekswenson opened this issue on.This depends on the icon theme that is currently applied. I hope to be able to adjust icon-sizes of apps (in xfce4) that don't respond to.
0 Comments
Leave a Reply. |