Recent

Author Topic: Native gtk ico...how...?  (Read 3902 times)

benohb

  • Full Member
  • ***
  • Posts: 213
Native gtk ico...how...?
« on: February 08, 2014, 08:12:54 pm »
Add icons System to menu and how it change with system theme... at runtime
« Last Edit: February 08, 2014, 08:16:35 pm by benohb »

benohb

  • Full Member
  • ***
  • Posts: 213
Re: Native gtk ico...how...?
« Reply #1 on: February 08, 2014, 09:47:23 pm »
Ok... :)


Code: [Select]
var
  gtk_icon:PGtkIconInfo;

...
....
 gtk_icon :=gtk_icon_theme_lookup_icon(gtk_icon_theme_get_default(),'camera-photo',48,TGtkIconLookupFlags(0)) ;

 writeln(gtk_icon_info_get_filename(gtk_icon));


 

TinyPortal © 2005-2018