From f42a342f8762fb016b842919e9bf322bda6494b3 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Mon, 7 Feb 2000 15:21:45 +0000 Subject: finished. 2000-02-07 Damon Chaplin * widgets/shortcut-bar/e-group-bar.c (e_group_bar_draw): finished. * widgets/shortcut-bar/e-icon-bar.c (e_icon_bar_item_released): check that an item was pressed. svn path=/trunk/; revision=1684 --- widgets/shortcut-bar/e-icon-bar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'widgets/shortcut-bar/e-icon-bar.c') diff --git a/widgets/shortcut-bar/e-icon-bar.c b/widgets/shortcut-bar/e-icon-bar.c index e9643dc451..04c0c83e6f 100644 --- a/widgets/shortcut-bar/e-icon-bar.c +++ b/widgets/shortcut-bar/e-icon-bar.c @@ -962,7 +962,8 @@ e_icon_bar_item_released (EIconBar *icon_bar, button = event->button.button; if (button == 1) { - if (icon_bar->pressed_item_num == icon_bar->mouse_over_item_num) { + if (icon_bar->pressed_item_num != -1 + && icon_bar->pressed_item_num == icon_bar->mouse_over_item_num) { gtk_signal_emit (GTK_OBJECT (icon_bar), e_icon_bar_signals[ITEM_SELECTED], event, item_num); -- cgit