diff options
Diffstat (limited to 'src/gtkext')
-rw-r--r-- | src/gtkext/easygtk.c | 8 | ||||
-rw-r--r-- | src/gtkext/gtkbufferview.c | 2 |
2 files changed, 9 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) diff --git a/src/gtkext/gtkbufferview.c b/src/gtkext/gtkbufferview.c index 2884383..0d11de2 100644 --- a/src/gtkext/gtkbufferview.c +++ b/src/gtkext/gtkbufferview.c @@ -595,6 +595,8 @@ static gboolean gtk_buffer_view_query_tooltip(GtkWidget *widget, gint x, gint y, if (g_binary_format_find_next_symbol_at(format, &addr, &next_sym)) stop_addr = get_mrange_addr(g_binary_symbol_get_range(next_sym)); + else + stop_addr = NULL; /* Pour GCC */ g_generic_config_get_value(get_main_configuration(), MPK_TOOLTIP_SIZE, &count); |