File: gtkmm-compat.h

package info (click to toggle)
aoflagger 2.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,232 kB
  • sloc: cpp: 61,805; python: 60; sh: 23; makefile: 8
file content (9 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
#include <gtkmm/button.h>
#include <gtkmm/image.h>

inline void gtkmm_set_image_from_icon_name(Gtk::Button& button, const Glib::ustring& icon_name, Gtk::IconSize size = Gtk::ICON_SIZE_BUTTON)
{
  Gtk::Image* image = Gtk::manage(new Gtk::Image());
  image->set_from_icon_name(icon_name, size);
  button.set_image(*image);
}