X-Git-Url: http://pileus.org/git/?p=aweather;a=blobdiff_plain;f=src%2Fplugins%2Falert.c;fp=src%2Fplugins%2Falert.c;h=73cb56451cbab60f55242a6c5903d42b60ef7a8b;hp=7808f614c8b7392a05336614ad73c8209adbc220;hb=a625a6710df170206d38a9d1899496f4d3a2562f;hpb=2590eff6a2ef4725c361905e49f2d20f1f800f2d diff --git a/src/plugins/alert.c b/src/plugins/alert.c index 7808f61..73cb564 100644 --- a/src/plugins/alert.c +++ b/src/plugins/alert.c @@ -499,7 +499,7 @@ static GtkWidget *_find_details(GtkNotebook *notebook, AlertMsg *msg) return NULL; } -static void _show_details(GritsPoly *county, GdkEvent *_, GritsPluginAlert *alert) +static gboolean _show_details(GritsPoly *county, GdkEvent *_, GritsPluginAlert *alert) { /* Add details for this messages */ AlertMsg *msg = g_object_get_data(G_OBJECT(county), "msg"); @@ -522,10 +522,12 @@ static void _show_details(GritsPoly *county, GdkEvent *_, GritsPluginAlert *aler gtk_widget_show_all(dialog); gint num = gtk_notebook_page_num(GTK_NOTEBOOK(notebook), details); gtk_notebook_set_current_page(GTK_NOTEBOOK(notebook), num); + + return FALSE; } /* Update counties */ -static void _alert_leave(GritsPoly *county, GdkEvent *_, GritsPluginAlert *alert) +static gboolean _alert_leave(GritsPoly *county, GdkEvent *_, GritsPluginAlert *alert) { g_debug("_alert_leave"); if (county->width == 3) { @@ -535,9 +537,10 @@ static void _alert_leave(GritsPoly *county, GdkEvent *_, GritsPluginAlert *alert county->width = 1; } grits_object_queue_draw(GRITS_OBJECT(county)); + return FALSE; } -static void _alert_enter(GritsPoly *county, GdkEvent *_, GritsPluginAlert *alert) +static gboolean _alert_enter(GritsPoly *county, GdkEvent *_, GritsPluginAlert *alert) { g_debug("_alert_enter"); if (county->width == 3) { @@ -547,6 +550,7 @@ static void _alert_enter(GritsPoly *county, GdkEvent *_, GritsPluginAlert *alert county->width = 2; } grits_object_queue_draw(GRITS_OBJECT(county)); + return FALSE; } /* Update polygons */