Lazarus

Programming => Widgetset => GTK => Topic started by: benohb on February 08, 2014, 08:12:54 pm

Title: Native gtk ico...how...?
Post by: benohb on February 08, 2014, 08:12:54 pm
Add icons System to menu and how it change with system theme... at runtime
Title: Re: Native gtk ico...how...?
Post by: benohb 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