Exemplo n.º 1
0
gint saveOptions() {
	if(SHASH("username") != NULL)
		gconf_client_set_string(gcfg, GCONF_BASE"/username",
			SHASH("username"), NULL);
	if((SHASH("password") != NULL) && (iSHASH("savepw") == TRUE))
		gconf_client_set_string(gcfg, GCONF_BASE"/password",
			SHASH("password"), NULL);
	if(SHASH("domain") != NULL)
		gconf_client_set_string(gcfg, GCONF_BASE"/domain",
			SHASH("domain"), NULL);
	gconf_client_set_bool(gcfg, GCONF_BASE"/savepw",
		iSHASH("savepw"), NULL);
	gconf_client_set_int(gcfg, GCONF_BASE"/rdp_protocol",
		iSHASH("rdp_protocol"), NULL);
	if(SHASH("geometry") != NULL)
		gconf_client_set_string(gcfg, GCONF_BASE"/geometry",
			SHASH("geometry"), NULL);
	if(SHASH("keymap") != NULL)
		gconf_client_set_string(gcfg, GCONF_BASE"/keymap",
			SHASH("keymap"), NULL);
	gconf_client_set_int(gcfg, GCONF_BASE"/colorsize",
		iSHASH("colorsize"), NULL);
	gconf_client_set_int(gcfg, GCONF_BASE"/sound",
		iSHASH("sound"), NULL);
	if(SHASH("program") != NULL)
		gconf_client_set_string(gcfg, GCONF_BASE"/program",
			SHASH("program"), NULL);
	if(SHASH("ppath") != NULL)
		gconf_client_set_string(gcfg, GCONF_BASE"/ppath",
			SHASH("ppath"), NULL);
	gconf_client_set_bool(gcfg, GCONF_BASE"/runprog",
		iSHASH("runprog"), NULL);
	gconf_client_set_bool(gcfg, GCONF_BASE"/bitmapupd",
		iSHASH("bitmapupd"), NULL);
	gconf_client_set_bool(gcfg, GCONF_BASE"/motionevt",
		iSHASH("motionevt"), NULL);
	gconf_client_set_bool(gcfg, GCONF_BASE"/hidewmdecoration",
		iSHASH("hidewmdecoration"), NULL);
	gconf_client_set_bool(gcfg, GCONF_BASE"/noencryption",
		iSHASH("noencryption"), NULL);
	gconf_client_set_bool(gcfg, GCONF_BASE"/wmkeybindings",
		iSHASH("wmkeybindings"), NULL);
	gconf_client_set_bool(gcfg, GCONF_BASE"/attconsole",
		iSHASH("attconsole"), NULL);
	if(SHASH("clientname") != NULL)
		gconf_client_set_string(gcfg, GCONF_BASE"/clientname",
			SHASH("clientname"), NULL);
	gconf_client_set_bool(gcfg, GCONF_BASE"/usessh",
		iSHASH("usessh"), NULL);
	if(SHASH("sshuser") != NULL)
		gconf_client_set_string(gcfg, GCONF_BASE"/sshuser",
			SHASH("sshuser"), NULL);
	if(SHASH("sshhost") != NULL)
		gconf_client_set_string(gcfg, GCONF_BASE"/sshhost",
			SHASH("sshhost"), NULL);
	gconf_client_set_bool(gcfg, GCONF_BASE"/showopts",
		iSHASH("showopts"), NULL);

	return(0);
}
Exemplo n.º 2
0
static CORBA_boolean
impl_quit(PortableServer_Servant servant, CORBA_Environment *ev)
{
	MailComponent *mc = MAIL_COMPONENT(bonobo_object_from_servant(servant));

	if (mc->priv->quit_state == -1)
		mc->priv->quit_state = MC_QUIT_START;

	mail_config_prune_proxies ();
	switch (mc->priv->quit_state) {
	case MC_QUIT_START: {
		extern int camel_application_is_exiting;
		int now = time(NULL)/60/60/24, days;
		gboolean empty_junk;

		GConfClient *gconf = mail_config_get_gconf_client();

		camel_application_is_exiting = TRUE;

		mail_vfolder_shutdown();

		mc->priv->quit_expunge = gconf_client_get_bool(gconf, "/apps/evolution/mail/trash/empty_on_exit", NULL)
			&& ((days = gconf_client_get_int(gconf, "/apps/evolution/mail/trash/empty_on_exit_days", NULL)) == 0
			    || (days + gconf_client_get_int(gconf, "/apps/evolution/mail/trash/empty_date", NULL)) <= now);

		empty_junk = gconf_client_get_bool(gconf, "/apps/evolution/mail/junk/empty_on_exit", NULL)
			&& ((days = gconf_client_get_int(gconf, "/apps/evolution/mail/junk/empty_on_exit_days", NULL)) == 0
			    || (days + gconf_client_get_int(gconf, "/apps/evolution/mail/junk/empty_date", NULL)) <= now);

		if (empty_junk) {
			g_hash_table_foreach(mc->priv->store_hash, (GHFunc)mc_quit_delete, mc);
			gconf_client_set_int(gconf, "/apps/evolution/mail/junk/empty_date", now, NULL);
		}

		g_hash_table_foreach(mc->priv->store_hash, (GHFunc)mc_quit_sync, mc);

		if (mc->priv->quit_expunge)
			gconf_client_set_int(gconf, "/apps/evolution/mail/trash/empty_date", now, NULL);

		mc->priv->quit_state = MC_QUIT_SYNC;
	}
		/* Falls through */
	case MC_QUIT_SYNC:
		if (mc->priv->quit_count > 0)
			return FALSE;

		mail_cancel_all();
		mc->priv->quit_state = MC_QUIT_THREADS;

		/* Falls through */
	case MC_QUIT_THREADS:
		/* should we keep cancelling? */
		return !mail_msg_active((unsigned int)-1);
	}

	return TRUE;
}
Exemplo n.º 3
0
/* Performs a scheduled dimensions-to-prefs sync for a window binding */
static gboolean
window_binding_perform_scheduled_sync (WindowBinding *binding)
{
	if (binding->bind_size) {
		gint width, height;
		gchar *key;
		GdkWindowState state;
		GdkWindow *window;

		window = gtk_widget_get_window (GTK_WIDGET (binding->window));
		state = gdk_window_get_state (window);

		if (state & GDK_WINDOW_STATE_MAXIMIZED) {
                        key = g_strconcat (binding->key_prefix, "_maximized", NULL);
			gconf_client_set_bool (bridge->client, key, TRUE, NULL);
			g_free (key);
		} else {
			gtk_window_get_size (binding->window, &width, &height);

                        key = g_strconcat (binding->key_prefix, "_width", NULL);
			gconf_client_set_int (bridge->client, key, width, NULL);
			g_free (key);

                        key = g_strconcat (binding->key_prefix, "_height", NULL);
			gconf_client_set_int (bridge->client, key, height, NULL);
			g_free (key);

                        key = g_strconcat (binding->key_prefix, "_maximized", NULL);
			gconf_client_set_bool (bridge->client, key, FALSE, NULL);
			g_free (key);
		}
	}

	if (binding->bind_pos) {
		gint x, y;
		gchar *key;

		gtk_window_get_position (binding->window, &x, &y);

                key = g_strconcat (binding->key_prefix, "_x", NULL);
		gconf_client_set_int (bridge->client, key, x, NULL);
		g_free (key);

                key = g_strconcat (binding->key_prefix, "_y", NULL);
		gconf_client_set_int (bridge->client, key, y, NULL);
		g_free (key);
	}

	binding->sync_timeout_id = 0;

	return FALSE;
}
/* Preferences Callback : Save. */
void
preferences_save_cb (gpointer data)
{
	gint width = gtk_adjustment_get_value (stickynotes->w_prefs_width);
	gint height = gtk_adjustment_get_value (stickynotes->w_prefs_height);
	gboolean sys_color = gtk_toggle_button_get_active (
			GTK_TOGGLE_BUTTON (stickynotes->w_prefs_sys_color));
	gboolean sys_font = gtk_toggle_button_get_active (
			GTK_TOGGLE_BUTTON (stickynotes->w_prefs_sys_font));
	gboolean sticky = gtk_toggle_button_get_active (
			GTK_TOGGLE_BUTTON (stickynotes->w_prefs_sticky));
	gboolean force_default = gtk_toggle_button_get_active (
			GTK_TOGGLE_BUTTON (stickynotes->w_prefs_force));
	gboolean desktop_hide = gtk_toggle_button_get_active (
			GTK_TOGGLE_BUTTON (stickynotes->w_prefs_desktop));

	if (gconf_client_key_is_writable (stickynotes->gconf,
				GCONF_PATH "/defaults/width", NULL))
		gconf_client_set_int (stickynotes->gconf,
				GCONF_PATH "/defaults/width", width, NULL);
	if (gconf_client_key_is_writable (stickynotes->gconf,
				GCONF_PATH "/defaults/height", NULL))
		gconf_client_set_int (stickynotes->gconf,
				GCONF_PATH "/defaults/height", height, NULL);
	if (gconf_client_key_is_writable (stickynotes->gconf,
				GCONF_PATH "/settings/use_system_color", NULL))
		gconf_client_set_bool (stickynotes->gconf,
				GCONF_PATH "/settings/use_system_color",
				sys_color, NULL);
	if (gconf_client_key_is_writable (stickynotes->gconf,
				GCONF_PATH "/settings/use_system_font", NULL))
		gconf_client_set_bool (stickynotes->gconf,
				GCONF_PATH "/settings/use_system_font",
				sys_font, NULL);
	if (gconf_client_key_is_writable (stickynotes->gconf,
				GCONF_PATH "/settings/sticky", NULL))
		gconf_client_set_bool (stickynotes->gconf,
				GCONF_PATH "/settings/sticky", sticky, NULL);
	if (gconf_client_key_is_writable (stickynotes->gconf,
				GCONF_PATH "/settings/force_default", NULL))
		gconf_client_set_bool (stickynotes->gconf,
				GCONF_PATH "/settings/force_default",
				force_default, NULL);
	if (gconf_client_key_is_writable (stickynotes->gconf,
				GCONF_PATH "/settings/desktop_hide", NULL))
		gconf_client_set_bool (stickynotes->gconf,
				GCONF_PATH "/settings/desktop_hide",
				desktop_hide, NULL);
}
Exemplo n.º 5
0
void
calendar_config_set_hpane_pos		(gint	      hpane_pos)
{
	calendar_config_init ();

	gconf_client_set_int (config, CALENDAR_CONFIG_HPANE_POS, hpane_pos, NULL);
}
Exemplo n.º 6
0
void
calendar_config_set_time_divisions	(gint	      divisions)
{
	calendar_config_init ();

	gconf_client_set_int (config, CALENDAR_CONFIG_TIME_DIVISIONS, divisions, NULL);
}
Exemplo n.º 7
0
void
calendar_config_set_day_end_minute	(gint	      day_end_min)
{
	calendar_config_init ();

	gconf_client_set_int (config, CALENDAR_CONFIG_DAY_END_MINUTE, day_end_min, NULL);
}
Exemplo n.º 8
0
void
calendar_config_set_day_end_hour	(gint	      day_end_hour)
{
	calendar_config_init ();

	gconf_client_set_int (config, CALENDAR_CONFIG_DAY_END_HOUR, day_end_hour, NULL);
}
Exemplo n.º 9
0
void
calendar_config_set_week_start_day	(gint	      week_start_day)
{
	calendar_config_init ();

	gconf_client_set_int (config, CALENDAR_CONFIG_WEEK_START, week_start_day, NULL);
}
Exemplo n.º 10
0
/**
 * calendar_config_set_default_reminder_interval:
 * @interval: Interval value, e.g. 5 for "5 minutes".
 *
 * Sets the interval that should be used for the default reminder in new
 * appointments.
 **/
void
calendar_config_set_default_reminder_interval (int interval)
{
	calendar_config_init ();

	gconf_client_set_int (config, CALENDAR_CONFIG_DEFAULT_REMINDER_INTERVAL, interval, NULL);
}
Exemplo n.º 11
0
void
calendar_config_set_hide_completed_tasks_value	(gint		value)
{
	calendar_config_init ();

	gconf_client_set_int (config, CALENDAR_CONFIG_TASKS_HIDE_COMPLETED_VALUE, value, NULL);
}
Exemplo n.º 12
0
void
calendar_config_set_working_days	(CalWeekdays  days)
{
	calendar_config_init ();

	gconf_client_set_int (config, CALENDAR_CONFIG_WORKING_DAYS, days, NULL);
}
Exemplo n.º 13
0
void dasher_app_settings_set_long(DasherAppSettings *pSelf, int iParameter, gint iValue) {
  DasherAppSettingsPrivate *pPrivate = (DasherAppSettingsPrivate *)(pSelf->private_data);

  if( iParameter < END_OF_LPS) {
    if(pPrivate->bWidgetSet)
      gtk_dasher_control_set_parameter_long(GTK_DASHER_CONTROL(pDasherWidget), iParameter, iValue);
  }
  else {
    if(dasher_app_settings_get_long(pSelf, iParameter) == iValue)
      return; // Don't attempt to change to the existing value
    
    //    pre_parameter_notification(0, iParameter, 0);

    app_longparamtable[ iParameter - FIRST_APP_LP ].value = iValue;

#ifdef WITH_GCONF    
    if(app_longparamtable[ iParameter - FIRST_APP_LP ].persistent) {
      gchar szName[256];
      
      strncpy(szName, "/apps/dasher4/", 256);
      strncat(szName,  app_longparamtable[ iParameter - FIRST_APP_LP ].regName, 255 - strlen( szName ));
      
      GError *pGConfError = NULL;
      gconf_client_set_int(pPrivate->pGConfClient, szName, iValue, &pGConfError);
    }
#endif
    
    // TODO: Use real signals to achieve this
    parameter_notification(0, iParameter, 0);
  }
}
Exemplo n.º 14
0
static void gconf_dialog_onSpinButtonValueChanged (GConfDialog* self, GtkSpinButton* widget) {
	GError * _inner_error_;
	GConfEntry* _tmp0_;
	GConfEntry* entry;
	g_return_if_fail (self != NULL);
	g_return_if_fail (widget != NULL);
	_inner_error_ = NULL;
	entry = (_tmp0_ = (GConfEntry*) g_object_get_data ((GObject*) widget, "gconf-entry"), (_tmp0_ == NULL) ? NULL : gconf_entry_ref (_tmp0_), _tmp0_);
	{
		gconf_client_set_int (self->priv->_default_client, entry->key, (gint) gtk_spin_button_get_value (widget), &_inner_error_);
		if (_inner_error_ != NULL) {
			goto __catch23_g_error;
		}
	}
	goto __finally23;
	__catch23_g_error:
	{
		GError * e;
		e = _inner_error_;
		_inner_error_ = NULL;
		{
			g_warning ("gtkextra-gconfdialog.vala:144: %s", e->message);
			_g_error_free0 (e);
		}
	}
	__finally23:
	if (_inner_error_ != NULL) {
		_gconf_entry_unref0 (entry);
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
		g_clear_error (&_inner_error_);
		return;
	}
	_gconf_entry_unref0 (entry);
}
Exemplo n.º 15
0
void
calendar_config_set_task_vpane_pos	(gint	      vpane_pos)
{
	calendar_config_init ();

	gconf_client_set_int (config, CALENDAR_CONFIG_TASK_VPANE_POS, vpane_pos, NULL);
}
Exemplo n.º 16
0
void
calendar_config_set_month_vpane_pos	(gint	      vpane_pos)
{
	calendar_config_init ();

	gconf_client_set_int (config, CALENDAR_CONFIG_MONTH_VPANE_POS, vpane_pos, NULL);
}
Exemplo n.º 17
0
Arquivo: util.c Projeto: chvik/gboggle
void
save_settings(const GBoggleSettings *settings)
{    
    GConfClient *gconf_client = gconf_client_get_default();
    gboolean res;
    gint saved_game_time;
    g_assert(settings);
    if (settings->language) {
        res = gconf_client_set_string(gconf_client,
                                               GCONF_KEY_LANGUAGE, 
                                               settings->language, 
                                               NULL);
        if (!res) {
            g_warning("saving %s into gconf was failed", GCONF_KEY_LANGUAGE);
        }
    }
    
    if (settings->game_time == 0) { saved_game_time = -1; }
    else { saved_game_time = settings->game_time; }
     
    res = gconf_client_set_int(gconf_client,
                              GCONF_KEY_GAME_TIME, 
                              saved_game_time, 
                              NULL);
    if (!res) {
    	g_warning("saving %s into gconf was failed", GCONF_KEY_GAME_TIME);
    }
    else
    {
      	DEBUGMSG("Saved game time as %d\n", saved_game_time);
	}
}
Exemplo n.º 18
0
static void
widget_entry_changed_cb (GtkWidget *widget,
                         gpointer data)
{
	const gchar *value;
	gint port = -1;
	GConfClient *client;

	client = gconf_client_get_default ();

	/*
	 * Do not change the order of comparison -
	 * GtkSpinButton is an extended form of GtkEntry
	*/
	if (GTK_IS_SPIN_BUTTON (widget)) {
		port = gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (widget));
		gconf_client_set_int (client, (const gchar *) data, port, NULL);
		d(g_print ("%s:%s: %s is SpinButton: value = [%d]\n", G_STRLOC, G_STRFUNC, (const gchar *)data, port));
	} else if (GTK_IS_ENTRY (widget)) {
		value = gtk_entry_get_text (GTK_ENTRY (widget));
		gconf_client_set_string (client, (const gchar *) data, value, NULL);
		d(g_print ("%s:%s: %s is Entry: value = [%s]\n", G_STRLOC, G_STRFUNC, (const gchar *)data, value));
	}

	g_object_unref (client);
}
Exemplo n.º 19
0
/**
 * gpk_prefs_update_freq_combo_changed:
 **/
static void
gpk_prefs_update_freq_combo_changed (GtkWidget *widget, gpointer data)
{
	gchar *value;
	guint freq = 0;
	GConfClient *client;

	client = gconf_client_get_default ();
	value = gtk_combo_box_get_active_text (GTK_COMBO_BOX (widget));
	if (strcmp (value, PK_FREQ_HOURLY_TEXT) == 0)
		freq = GPK_PREFS_VALUE_HOURLY;
	else if (strcmp (value, PK_FREQ_DAILY_TEXT) == 0)
		freq = GPK_PREFS_VALUE_DAILY;
	else if (strcmp (value, PK_FREQ_WEEKLY_TEXT) == 0)
		freq = GPK_PREFS_VALUE_WEEKLY;
	else if (strcmp (value, PK_FREQ_NEVER_TEXT) == 0)
		freq = GPK_PREFS_VALUE_NEVER;
	else
		g_assert (FALSE);

	egg_debug ("Changing %s to %i", GPK_CONF_FREQUENCY_GET_UPDATES, freq);
	gconf_client_set_int (client, GPK_CONF_FREQUENCY_GET_UPDATES, freq, NULL);
	g_free (value);
	g_object_unref (client);
}
Exemplo n.º 20
0
void save_settings()
{
	  GConfClient* gcClient = NULL;

	  gcClient = gconf_client_get_default();
	  g_assert(GCONF_IS_CLIENT(gcClient));

	  gchar *port_path = g_strconcat(config->GC_ROOT, "port", NULL);
	  const gchar *save_server_port = gtk_entry_get_text(GTK_ENTRY(txtServerPort));
	  if (! gconf_client_set_string(gcClient, port_path, save_server_port, NULL) ) {
			GtkWidget *failDialog = gtk_message_dialog_new(NULL,
		     		GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR,
		     		GTK_BUTTONS_OK,
		     		"Failed to update server port setting\n");
			gtk_dialog_run (GTK_DIALOG (failDialog));
			gtk_widget_destroy (failDialog);
	  }

	  gchar *update_path = g_strconcat(config->GC_ROOT, "update", NULL);
	  const gchar *save_update_interval = gtk_entry_get_text(GTK_ENTRY(txtUpdateInterval));
	  if (! gconf_client_set_int(gcClient, update_path, g_ascii_strtod(save_update_interval, NULL), NULL) ) {
			GtkWidget *failDialog = gtk_message_dialog_new(NULL,
		     		GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR,
		     		GTK_BUTTONS_OK,
		     		"Failed to update update interval setting\n");
			gtk_dialog_run (GTK_DIALOG (failDialog));
			gtk_widget_destroy (failDialog);
	  }

	  g_object_unref(gcClient);
	  gcClient = NULL;

}
Exemplo n.º 21
0
void CGnomeSettingsStore::SaveSetting(const std::string &Key, long Value) {
  std::string keypath(GCONF_KEY_ROOT);
  keypath += Key;

  GError *the_error = NULL;

  gconf_client_set_int(the_gconf_client, keypath.c_str(), Value, &the_error);
}
Exemplo n.º 22
0
NS_IMETHODIMP
nsGConfService::SetInt(const nsACString &aKey, PRInt32 aValue)
{
  PRBool res = gconf_client_set_int(mClient, PromiseFlatCString(aKey).get(),
                                    aValue, nsnull);

  return res ? NS_OK : NS_ERROR_FAILURE;
}
Exemplo n.º 23
0
void preferences_set_int (const char *key, gint i)
{
        GError *err;

        err = NULL;
        gconf_client_set_int (warlock_gconf_client, key, i, &err);
        print_error (err);
}
Exemplo n.º 24
0
static void
on_historyLength_value_changed                   (GtkSpinButton       *spinButton,
                                        		gpointer         user_data)
{
	gint value;
	value = gtk_spin_button_get_value (spinButton);
	gconf_client_set_int (global_conf, MAX_ELEMENTS_KEY, value, NULL);
}
Exemplo n.º 25
0
//Every widget needs to update the key in the GConf database when he changes his status
static void
on_itemLength_value_changed                   (GtkSpinButton       *spinButton,
                                        		gpointer         user_data)
{
	gint value;
	value = gtk_spin_button_get_value (spinButton);
	gconf_client_set_int (global_conf, MAX_ITEM_LENGTH_KEY, value, NULL);
}
Exemplo n.º 26
0
void
gm_conf_set_int (const gchar *key,
                 const int v)
{
    g_return_if_fail (key != NULL);

    gconf_client_set_int (client, key, v, NULL);
}
Exemplo n.º 27
0
Arquivo: prefs.c Projeto: phako/ignuit
void
prefs_set_auto_listen (Prefs *p, AutoListen listen)
{
    if (listen != p->listen) {
        p->listen = listen;
        gconf_client_set_int (p->gconf_client, PREF_AUTO_LISTEN, listen, NULL);
    }
}
Exemplo n.º 28
0
/**
 * 保存对话框的UI布局数据.
 */
void DialogPeer::WriteUILayout()
{
        GConfClient *client;
        gint numeric;

        client = gconf_client_get_default();

        numeric = GPOINTER_TO_INT(g_datalist_get_data(&dtset, "window-width"));
        gconf_client_set_int(client, GCONF_PATH "/peer_window_width", numeric, NULL);
        numeric = GPOINTER_TO_INT(g_datalist_get_data(&dtset, "window-height"));
        gconf_client_set_int(client, GCONF_PATH "/peer_window_height", numeric, NULL);

        numeric = GPOINTER_TO_INT(g_datalist_get_data(&dtset, "main-paned-divide"));
        gconf_client_set_int(client, GCONF_PATH "/peer_main_paned_divide", numeric, NULL);

        numeric = GPOINTER_TO_INT(g_datalist_get_data(&dtset,
                                 "historyinput-paned-divide"));
        gconf_client_set_int(client, GCONF_PATH "/peer_historyinput_paned_divide",
                                                                 numeric, NULL);

        numeric = GPOINTER_TO_INT(g_datalist_get_data(&dtset,
                                 "infoenclosure-paned-divide"));
        gconf_client_set_int(client, GCONF_PATH "/peer_infoenclosure_paned_divide",
                                                                 numeric, NULL);

        numeric = GPOINTER_TO_INT(g_datalist_get_data(&dtset,"enclosure-paned-divide"));
        gconf_client_set_int(client, GCONF_PATH "/peer_enclosure_paned_divide",
                                                                 numeric, NULL);

        numeric = GPOINTER_TO_INT(g_datalist_get_data(&dtset,"file-receive-paned-divide"));
        gconf_client_set_int(client, GCONF_PATH "/peer_file_recieve_paned_divide",
                                                                 numeric, NULL);

        g_object_unref(client);
}
Exemplo n.º 29
0
static void                 
marina_prefs_set_int (const gchar* key, gint value)
{
  marina_debug (DEBUG_PREFS);

  g_return_if_fail (gconf_client != NULL);
  g_return_if_fail (gconf_client_key_is_writable (gconf_client, key, NULL));
  gconf_client_set_int (gconf_client, key, value, NULL);
}
Exemplo n.º 30
0
bool Conf::SetInt(const gchar *key,
		  int val)
{
    gboolean ret = false;

    if (!gconf_client)
	return false;

    ret = gconf_client_set_int(gconf_client, key, val, NULL);
    return ret;
}