Lines 16-21
Link Here
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 |
*/ |
17 |
*/ |
18 |
|
18 |
|
|
|
19 |
#ifdef HAVE_CONFIG_H |
20 |
#include "config.h" |
21 |
#endif |
22 |
|
19 |
#include "ogmrip-fs.h" |
23 |
#include "ogmrip-fs.h" |
20 |
#include "ogmrip-gconf.h" |
24 |
#include "ogmrip-gconf.h" |
21 |
#include "ogmrip-helper.h" |
25 |
#include "ogmrip-helper.h" |
Lines 24-29
Link Here
|
24 |
#include "ogmrip-gconf-settings.h" |
28 |
#include "ogmrip-gconf-settings.h" |
25 |
|
29 |
|
26 |
#include <string.h> |
30 |
#include <string.h> |
|
|
31 |
#include <unistd.h> |
27 |
|
32 |
|
28 |
OGMRipSettings *settings; |
33 |
OGMRipSettings *settings; |
29 |
|
34 |
|
Lines 122-129
Link Here
|
122 |
g_param_spec_int (OGMRIP_GCONF_CHAPTER_LANG, NULL, NULL, 0, G_MAXINT, OGMRIP_DEFAULT_CHAPTER_LANG, G_PARAM_READWRITE)); |
127 |
g_param_spec_int (OGMRIP_GCONF_CHAPTER_LANG, NULL, NULL, 0, G_MAXINT, OGMRIP_DEFAULT_CHAPTER_LANG, G_PARAM_READWRITE)); |
123 |
ogmrip_settings_install_key (settings, |
128 |
ogmrip_settings_install_key (settings, |
124 |
g_param_spec_int (OGMRIP_GCONF_AFTER_ENC, NULL, NULL, 0, 3, OGMRIP_DEFAULT_AFTER_ENC, G_PARAM_READWRITE)); |
129 |
g_param_spec_int (OGMRIP_GCONF_AFTER_ENC, NULL, NULL, 0, 3, OGMRIP_DEFAULT_AFTER_ENC, G_PARAM_READWRITE)); |
|
|
130 |
|
131 |
#ifdef HAVE_SYSCONF_NPROC |
125 |
ogmrip_settings_install_key (settings, |
132 |
ogmrip_settings_install_key (settings, |
|
|
133 |
g_param_spec_int (OGMRIP_GCONF_THREADS, NULL, NULL, 1, G_MAXINT, sysconf (_SC_NPROCESSORS_ONLN), G_PARAM_READWRITE)); |
134 |
#else |
135 |
ogmrip_settings_install_key (settings, |
126 |
g_param_spec_int (OGMRIP_GCONF_THREADS, NULL, NULL, 1, G_MAXINT, OGMRIP_DEFAULT_THREADS, G_PARAM_READWRITE)); |
136 |
g_param_spec_int (OGMRIP_GCONF_THREADS, NULL, NULL, 1, G_MAXINT, OGMRIP_DEFAULT_THREADS, G_PARAM_READWRITE)); |
|
|
137 |
#endif |
127 |
|
138 |
|
128 |
ogmrip_settings_install_key (settings, |
139 |
ogmrip_settings_install_key (settings, |
129 |
g_param_spec_boolean (OGMRIP_GCONF_COPY_DVD, NULL, NULL, OGMRIP_DEFAULT_COPY_DVD, G_PARAM_READWRITE)); |
140 |
g_param_spec_boolean (OGMRIP_GCONF_COPY_DVD, NULL, NULL, OGMRIP_DEFAULT_COPY_DVD, G_PARAM_READWRITE)); |