+void
+drawindicator(Client *c) {
+ GtkWidget *w;
+ gint width;
+
+ w = c->indicator;
+ width = c->progress * w->allocation.width / 100;
+ gdk_draw_rectangle(w->window,
+ w->style->fg_gc[GTK_WIDGET_STATE(w)],
+ TRUE,
+ 0, 0, w->allocation.width, w->allocation.height);
+ gdk_draw_rectangle(w->window,
+ w->style->bg_gc[GTK_WIDGET_STATE(w)],
+ TRUE,
+ 0, 0, width, w->allocation.height);
+}
+
+gboolean
+exposeindicator(GtkWidget *w, GdkEventExpose *e, Client *c) {
+ drawindicator(c);
+ return TRUE;
+}
+