Logo Search packages:      
Sourcecode: ardour version File versions

bool Gtk::Window::set_icon_from_file ( const std::string &  filename  ) 

Sets the icon for the window.

This function is equivalent to calling set_icon() with a pixbuf created by loading the image from filename .

filename Location of icon file.
true if setting the icon succeeded.
Since: 2.2.

Definition at line 711 of file window.cc.

References gobj().

  GError *error = 0;
  bool retvalue = gtk_window_set_icon_from_file(gobj(), filename.c_str(), &(error));
  if(error) ::Glib::Error::throw_exception(error);
  return retvalue;

Generated by  Doxygen 1.6.0   Back to index