Ejemplo n.º 1
0
/* This updates things that should be consistent with the button's appearance,
 * and update_button_state updates the button's active flag (whether it's toggled on).
 */
static void
update_button_display (ButtonData *button_data)
{
        queue_update_icon (button_data);
        
        if (button_data->showing_bigboard)
                wncklet_set_tooltip (button_data->button, _("Click here to hide the desktop sidebar."));
        else
                wncklet_set_tooltip (button_data->button, _("Click here to show the desktop sidebar."));
}
Ejemplo n.º 2
0
/* This updates things that should be consistent with the button's appearance,
 * and update_button_state updates the button appearance itself
 */
static void
update_button_display (ShowDesktopData *sdd)
{
        if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (sdd->button))) {
                wncklet_set_tooltip (sdd->button,
				     _("Click here to restore hidden windows."));
        } else {
                wncklet_set_tooltip (sdd->button,
				     _("Click here to hide all windows and show the desktop."));
        }
}