diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-07-11 13:25:08 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-07-11 13:25:08 +0000 |
commit | 8ce054b21ba2058470018a127f0bcf3dc32c1f87 (patch) | |
tree | a37f32f6003cbdc5ee65a71fb9416f43fad2fe54 /src/prefs.h | |
parent | 7335b44d3e200924f58860967ea1eaa13bd822d4 (diff) | |
download | metacity-8ce054b21ba2058470018a127f0bcf3dc32c1f87.tar.gz |
React to cursor theme changes: (#308106)
2005-07-11 Matthias Clasen <mclasen@redhat.com>
React to cursor theme changes: (#308106)
* src/prefs.h:
* src/prefs.c: Expose the GConf keys for cursor theme
and size as preferences META_PREF_CURSOR_THEME and
META_PREF_CURSOR_SIZE with getters meta_prefs_get_cursor_theme()
and meta_prefs_get_cursor_size().
* src/display.c (meta_display_open): Initialize the cursor
theme and size.
* src/display.h:
* src/display.c (meta_display_set_cursor_theme): New function
to change the cursor theme and update all cursors.
* src/screen.h
* src/screen.c (meta_screen_update_cursor): New function to
refesh the root cursor of a screen.
* src/main.c (prefs_changed_callback): Update the cursor
theme when the cursor preferences change.
Diffstat (limited to 'src/prefs.h')
-rw-r--r-- | src/prefs.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/prefs.h b/src/prefs.h index b0d38994..8b437d73 100644 --- a/src/prefs.h +++ b/src/prefs.h @@ -48,7 +48,9 @@ typedef enum META_PREF_AUDIBLE_BELL, META_PREF_VISUAL_BELL_TYPE, META_PREF_REDUCED_RESOURCES, - META_PREF_GNOME_ACCESSIBILITY + META_PREF_GNOME_ACCESSIBILITY, + META_PREF_CURSOR_THEME, + META_PREF_CURSOR_SIZE } MetaPreference; typedef void (* MetaPrefsChangedFunc) (MetaPreference pref, @@ -91,6 +93,9 @@ const char* meta_prefs_get_workspace_name (int i); void meta_prefs_change_workspace_name (int i, const char *name); +const char* meta_prefs_get_cursor_theme (void); +int meta_prefs_get_cursor_size (void); + /* Screen bindings */ #define META_KEYBINDING_WORKSPACE_1 "switch_to_workspace_1" #define META_KEYBINDING_WORKSPACE_2 "switch_to_workspace_2" |