X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-conf.c;h=4090b74c3ea9dce414e42cb59bb643c6c312a15e;hb=bd17d2af982332ee1791998361b1ac6731fe14fa;hp=d9f6800ffd0d494278e29b0ca8a3dc2304b4f6e2;hpb=284371cbedd3a3a774f9ca5cd35e43fb38bb09e7;p=pspp-builds.git diff --git a/src/ui/gui/psppire-conf.c b/src/ui/gui/psppire-conf.c index d9f6800f..4090b74c 100644 --- a/src/ui/gui/psppire-conf.c +++ b/src/ui/gui/psppire-conf.c @@ -181,16 +181,20 @@ psppire_conf_get_boolean (PsppireConf *conf, const gchar *base, const gchar *name, gboolean *value) { gboolean ok; + gboolean b; GError *err = NULL; conf_read (conf); - *value = g_key_file_get_boolean (conf->keyfile, - base, - name, &err); + b = g_key_file_get_boolean (conf->keyfile, + base, + name, &err); ok = (err == NULL); if ( err != NULL ) g_error_free (err); + if (ok) + *value = b; + return ok; } @@ -270,9 +274,6 @@ psppire_conf_save_window_geometry (PsppireConf *conf, GDK_WINDOW_STATE_MAXIMIZED ) return; - if ( event->send_event ) - return; - psppire_conf_set_int (conf, base, "height", event->height); psppire_conf_set_int (conf, base, "width", event->width); @@ -292,4 +293,5 @@ psppire_conf_save_window_geometry (PsppireConf *conf, default: break; }; + }