HomePage > Software Index > Development > gtkdialog > Tips and Tricks

9.5 Window header icon

You can add your own icon (symlinks also work) if you place it in a gtk-theme directory structure as /usr/share/icons/hicolor/. ie. /usr/share/icons/hicolor/48x48/apps/games48.png
Now, run this command in the terminal to refresh the icon cache;
gtk-update-icon-cache -f -i /usr/share/icons/hicolor
Your gtkdialog code would look like this;
<window title="A GTKDialog" icon-name="games48" resizable="false" decorated="true">


Categories
CategoryGtkdialog
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki