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

void PreferencesDialog::SetSettingsInGconf (  )  [private]

Store settings into gconf from local variables.

<PreferencesDialog::SetSettingsInGconf>

Date:
12-11-2006 GAF Written

Definition at line 295 of file PreferencesDialog.cc.

Referenced by OnButtonApplyClick().

{
      // mwahaha scum bag C coders, we have overloading!
      m_pGconfClient->set_string_list("/apps/wp_tray/dir_list", m_lsWpDir);

      // set the other widgets up from the gconf values
      std::stringstream ss;
      ss.imbue(std::locale("")); // use the user's locale for this stream
      ss << m_pEntryTime->get_text().c_str();
      ss >> m_nTimeout;

      m_pGconfClient->set("/apps/wp_tray/n_timeout", m_nTimeout);
      m_pGconfClient->set("/apps/wp_tray/b_timeout", m_pCheckButtonTimeout->get_active());
      m_pGconfClient->set("/apps/wp_tray/b_wp_logon", m_pCheckButtonLogonNew->get_active());
      m_pGconfClient->set("/apps/wp_tray/b_img_check", m_pCheckButtonImageCheck->get_active());
      m_pGconfClient->set("/apps/wp_tray/b_follow_links", m_pCheckButtonFollowLinks->get_active());
      m_pGconfClient->set("/apps/wp_tray/b_notifications", m_pCheckButtonNotifications->get_active());
      m_pGconfClient->set("/desktop/gnome/background/picture_options", m_pEntryMode->get_text());
}// end PreferencesDialog::SetSettingsToGconf


Generated by  Doxygen 1.6.0   Back to index