static void draw_action (GsdMediaKeysWindow *window, cairo_t *cr) { switch (window->priv->action) { case GSD_MEDIA_KEYS_WINDOW_ACTION_VOLUME: draw_action_volume (window, cr); break; case GSD_MEDIA_KEYS_WINDOW_ACTION_CUSTOM: draw_action_custom (window, cr); break; default: break; } }
static void gsd_media_keys_window_draw_when_composited (GsdOsdWindow *osd_window, cairo_t *cr) { GsdMediaKeysWindow *window = GSD_MEDIA_KEYS_WINDOW (osd_window); switch (window->priv->action) { case GSD_MEDIA_KEYS_WINDOW_ACTION_VOLUME: draw_action_volume (window, cr); break; case GSD_MEDIA_KEYS_WINDOW_ACTION_CUSTOM: draw_action_custom (window, cr); break; default: break; } }