Logo Search packages:      
Sourcecode: wallpaper-tray version File versions  Download package

void LibNotify::WallpaperChanged ( Glib::ustring  _szNewWallpaper  ) 

Destroy a LibNotify object.

<LibNotify::WallpaperChanged>

Parameters:
_szNewWallpaper To be called when the wallpaper changes.
Date:
12-11-2006 GAF Written

Definition at line 103 of file LibNotify.cc.

References OnNotificationChangeAccept().

{
      Glib::ustring sz_MsgText =
                  _("Do you want to accept this new wallpaper?\n") +
                  _szNewWallpaper;

      NotifyNotification * p_Notification = notify_notification_new     (
                  _("Wallpaper Tray is about to change your wallpaper"),
                  sz_MsgText.c_str(),
                  NULL,
                  NULL//GTK_WIDGET(m_pApplet->gobj())
            );

      m_SigcConnection = Glib::signal_timeout().connect     (
                  sigc::mem_fun(this, &LibNotify::OnNotificationChangeAccept), 1000 * 7
            );

      if(m_pApplet->GetThumbnail())
      {
            notify_notification_set_icon_from_pixbuf(p_Notification, m_pApplet->GetThumbnail()->gobj());
      }// end if

      // allow the user to block the change
      notify_notification_add_action      (
                  p_Notification,
                  _("Don't change"),
                  _("Don't change"),
                  fn_NotifyCallbackReject,
                  this,
                  NULL
            );

      // allow the user to delete the wp
      notify_notification_add_action      (
                  p_Notification,
                  _("Delete it"),
                  _("delete it"),
                  fn_NotifyCallbackDelete,
                  this,
                  NULL
            );

      notify_notification_show(p_Notification, NULL);
}// end LibNotify::WallpaperChanged


Generated by  Doxygen 1.6.0   Back to index