diff options
Diffstat (limited to 'src/gtkext/easygtk.c')
-rw-r--r-- | src/gtkext/easygtk.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gtkext/easygtk.c b/src/gtkext/easygtk.c index 5348265..d6a1c73 100644 --- a/src/gtkext/easygtk.c +++ b/src/gtkext/easygtk.c @@ -24,6 +24,9 @@ #include "easygtk.h" +#include <assert.h> + + #include "support.h" @@ -467,9 +470,12 @@ static void _finish_button_with_img(GtkWidget *button, GObject *object, const ch else if (picture != NULL) gtk_container_add(GTK_CONTAINER(button), picture); - else /*if (label != NULL)*/ + else if (label != NULL) gtk_container_add(GTK_CONTAINER(button), caption); + else + assert(0); + /* Interactions GTK... */ if (G_IS_OBJECT(object) && name != NULL) |