diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-11-03 06:04:57 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-11-03 06:05:03 +0100 |
commit | 405459e93be718b0e6aad26746036105dd3f3226 (patch) | |
tree | 1d3a94bbbf2e58c334cf2234357719f4a3fe2af8 /src/ImageButton.cpp | |
parent | 8cc8853c3c1e5dfd7681bc0c31bc0eb88a4ef959 (diff) |
Improve top bar, have to fix banding...
Diffstat (limited to 'src/ImageButton.cpp')
-rw-r--r-- | src/ImageButton.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ImageButton.cpp b/src/ImageButton.cpp index 17939f7..925e538 100644 --- a/src/ImageButton.cpp +++ b/src/ImageButton.cpp @@ -3,9 +3,10 @@ namespace dchat { - ImageButton::ImageButton(const char *filepath, const char *text) : - Gtk::Button(text) + ImageButton::ImageButton(const char *filepath, const char *text) { + if(text) + set_label(text); Gtk::Image *image = Gtk::manage(new Gtk::Image(filepath)); set_always_show_image(true); set_image(*image); |