aboutsummaryrefslogtreecommitdiff
path: root/src/ImageButton.cpp
diff options
context:
space:
mode:
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);