diff options
-rw-r--r-- | mixgtk/mixgtk_mixal.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mixgtk/mixgtk_mixal.c b/mixgtk/mixgtk_mixal.c index eb8c60d..94c4dd4 100644 --- a/mixgtk/mixgtk_mixal.c +++ b/mixgtk/mixgtk_mixal.c @@ -398,12 +398,15 @@ on_mixal_motion_notify_event (GtkWidget *list, GdkEventMotion *event, if (gtk_clist_get_selection_info (clist_, event->x, event->y, &row, &col) && row != last_row && tips_text_) { + const gchar *msg = NULL; last_row = row; if (last_message) gtk_statusbar_remove (status_, status_context_, last_message); - last_message = gtk_statusbar_push - (status_, status_context_, - (const gchar *)g_ptr_array_index (tips_text_, row)); + msg = (const gchar *)g_ptr_array_index (tips_text_, row); + if (msg) + last_message = gtk_statusbar_push (status_, status_context_, msg); + else + last_message = 0; } return FALSE; } |