diff options
| author | Jan Djärv | 2011-07-01 11:18:46 +0200 |
|---|---|---|
| committer | Jan Djärv | 2011-07-01 11:18:46 +0200 |
| commit | 0949d2b6ba1027bce991b2f3f7a4ce92b7adf620 (patch) | |
| tree | 8b84e14d700f5d399ae49f69f7b2fe57dcd808de /src/xgselect.c | |
| parent | 36b148cf16f468ffb7731c0f1e0c49ceb8a7deb0 (diff) | |
| download | emacs-0949d2b6ba1027bce991b2f3f7a4ce92b7adf620.tar.gz emacs-0949d2b6ba1027bce991b2f3f7a4ce92b7adf620.zip | |
* process.c: Add defined (HAVE_GSETTINGS) for xgselect.h
(wait_reading_process_output): Add defined (HAVE_GSETTINGS) for
xg_select.
* xgselect.c: Add defined (HAVE_GSETTINGS).
(xgselect_initialize): Ditto.
* xsettings.c (store_monospaced_changed): Take new font as arg and
check for change against current_mono_font.
(EMACS_TYPE_SETTINGS): Remove this and related defines.
(emacs_settings_constructor, emacs_settings_get_property)
(emacs_settings_set_property, emacs_settings_class_init)
(emacs_settings_init, gsettings_obj): Remove.
(something_changedCB): New function for HAVE_GSETTINGS.
(something_changedCB): HAVE_GCONF: Call store_monospaced_changed
with value as argument.
(init_gsettings): Check that GSETTINGS_SCHEMA exists before calling
g_settings_new. Do not create gsettings_obj.
Remove calls to g_settings_bind. Connect something_changedCB to
"changed".
Fixes: debbugs:8967
Diffstat (limited to 'src/xgselect.c')
| -rw-r--r-- | src/xgselect.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xgselect.c b/src/xgselect.c index 0d154f6496a..9ccdd37489f 100644 --- a/src/xgselect.c +++ b/src/xgselect.c | |||
| @@ -15,14 +15,14 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
| 15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. |
| 16 | 16 | ||
| 17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License |
| 18 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 18 | along with GNU Emacs. If not, see <http§://www.gnu.org/licenses/>. */ |
| 19 | 19 | ||
| 20 | #include <config.h> | 20 | #include <config.h> |
| 21 | 21 | ||
| 22 | #include <setjmp.h> | 22 | #include <setjmp.h> |
| 23 | #include "xgselect.h" | 23 | #include "xgselect.h" |
| 24 | 24 | ||
| 25 | #if defined (USE_GTK) || defined (HAVE_GCONF) | 25 | #if defined (USE_GTK) || defined (HAVE_GCONF) || defined (HAVE_GSETTINGS) |
| 26 | 26 | ||
| 27 | #include <glib.h> | 27 | #include <glib.h> |
| 28 | #include <errno.h> | 28 | #include <errno.h> |
| @@ -149,13 +149,13 @@ xg_select (int max_fds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds, | |||
| 149 | 149 | ||
| 150 | return retval; | 150 | return retval; |
| 151 | } | 151 | } |
| 152 | #endif /* defined (USE_GTK) || defined (HAVE_GCONF) */ | 152 | #endif /* USE_GTK || HAVE_GCONF || HAVE_GSETTINGS */ |
| 153 | 153 | ||
| 154 | void | 154 | void |
| 155 | xgselect_initialize (void) | 155 | xgselect_initialize (void) |
| 156 | { | 156 | { |
| 157 | #if defined (USE_GTK) || defined (HAVE_GCONF) | 157 | #if defined (USE_GTK) || defined (HAVE_GCONF) || defined (HAVE_GSETTINGS) |
| 158 | gfds_size = 128; | 158 | gfds_size = 128; |
| 159 | gfds = xmalloc (sizeof (*gfds)*gfds_size); | 159 | gfds = xmalloc (sizeof (*gfds)*gfds_size); |
| 160 | #endif /* defined (USE_GTK) || defined (HAVE_GCONF) */ | 160 | #endif |
| 161 | } | 161 | } |