aboutsummaryrefslogtreecommitdiff
path: root/src/ImageButton.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-11-03 06:04:57 +0100
committerdec05eba <dec05eba@protonmail.com>2018-11-03 06:05:03 +0100
commit405459e93be718b0e6aad26746036105dd3f3226 (patch)
tree1d3a94bbbf2e58c334cf2234357719f4a3fe2af8 /src/ImageButton.cpp
parent8cc8853c3c1e5dfd7681bc0c31bc0eb88a4ef959 (diff)
Improve top bar, have to fix banding...
Diffstat (limited to 'src/ImageButton.cpp')
-rw-r--r--src/ImageButton.cpp5
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);