Esempio n. 1
0
static void
_locked_changed_cb (OlConfigProxy *config,
                    const gchar *key,
                    gpointer data)
{
  gboolean locked = ol_config_proxy_get_bool (config, key);
  if (menu.lock != NULL &&
      locked != gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (menu.lock)))
    gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu.lock),
                                    locked);
}
Esempio n. 2
0
static void
_visible_changed_cb (OlConfigProxy *config,
                     const gchar *key,
                     gpointer data)
{
  gboolean visible = ol_config_proxy_get_bool (config, key);
  if (menu.hide &&
      visible == gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (menu.hide)))
    gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu.hide),
                                    !visible);
}
Esempio n. 3
0
static void
_visible_changed_cb (OlConfigProxy *config,
                     const char *key,
                     OlOsdModule *osd)
{
  gboolean visible = ol_config_proxy_get_bool (config, key);
  if (visible)
  {
    gtk_widget_show (GTK_WIDGET (osd->window));
  }
  else
  {
    gtk_widget_hide (GTK_WIDGET (osd->window));
  }
}