From 405459e93be718b0e6aad26746036105dd3f3226 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 3 Nov 2018 06:04:57 +0100 Subject: Improve top bar, have to fix banding... --- src/ImageButton.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ImageButton.cpp') 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); -- cgit v1.2.3