Exemple #1
0
void
ntf_libnotify_init (void)
{
  n_notifiers = 0;
  overlay_focused = FALSE;

  store = dawati_netbook_notify_store_new ();

  subsystem_id = ntf_notification_get_subsystem_id ();

  g_signal_connect (store,
                    "notification-added",
                    G_CALLBACK (ntf_libnotify_notification_added_cb),
                    NULL);

  g_signal_connect (store,
                    "notification-closed",
                    G_CALLBACK (ntf_libnotify_notification_closed_cb),
                    NULL);
}
void
ntf_wm_init (void)
{
  MetaPlugin *plugin  = meego_netbook_get_plugin_singleton ();
  MetaScreen   *screen  = meta_plugin_get_screen (plugin);
  MetaDisplay  *display = meta_screen_get_display (screen);

  subsystem_id = ntf_notification_get_subsystem_id ();

  g_signal_connect (display,
                    "window-demands-attention",
                    G_CALLBACK (ntf_wm_display_window_demands_attention_cb),
                    plugin);
  g_signal_connect (display,
                    "window-marked-urgent",
                    G_CALLBACK (ntf_wm_display_window_demands_attention_cb),
                    plugin);

  g_signal_connect (display,
                    "notify::focus-window",
                    G_CALLBACK (ntf_wm_display_focus_window_notify_cb),
                    plugin);
}