Пример #1
0
static void
_pos_changed_cb (OlConfigProxy *config,
                 const char *key,
                 OlOsdModule *osd)
{
  ol_osd_window_move (osd->window,
                      ol_config_proxy_get_int (config, "OSD/x"),
                      ol_config_proxy_get_int (config, "OSD/y"));
}
Пример #2
0
static void
_size_changed_cb (OlConfigProxy *config,
                  const char *key,
                  OlScrollModule *module)
{
  gint width = ol_config_proxy_get_int (config, "ScrollMode/width");
  gint height = ol_config_proxy_get_int (config, "ScrollMode/height");
  gtk_window_resize (GTK_WINDOW (module->scroll), width, height);
}
Пример #3
0
static void
_outline_changed_cb (OlConfigProxy *config,
                     const char *key,
                     OlOsdModule *osd)
{
  ol_osd_window_set_outline_width (osd->window, ol_config_proxy_get_int (config, key));
}
Пример #4
0
static void
_line_count_changed_cb (OlConfigProxy *config,
                        const char *key,
                        OlOsdModule *osd)
{
  osd->line_count = ol_config_proxy_get_int (config, key);
  ol_osd_window_set_line_count (osd->window, osd->line_count);
}