blob: 17939f7475faf9116c531c321693faaa5e6175a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include "../include/ImageButton.hpp"
#include <gtkmm/image.h>
namespace dchat
{
ImageButton::ImageButton(const char *filepath, const char *text) :
Gtk::Button(text)
{
Gtk::Image *image = Gtk::manage(new Gtk::Image(filepath));
set_always_show_image(true);
set_image(*image);
get_style_context()->add_class("image-button");
}
}
|