diff options
author | Havoc Pennington <hp@pobox.com> | 2002-11-03 19:06:39 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-11-03 19:06:39 +0000 |
commit | 6a1abc7482600a30cab239a1f7aa6b7b25bdcebd (patch) | |
tree | 70987e368c2a9afc7f398afa8623f17fc92b8183 /src/prefs.h | |
parent | 7f36a8c7d1afab16f9ea7eaa3efb90b83ecfaac1 (diff) | |
download | metacity-6a1abc7482600a30cab239a1f7aa6b7b25bdcebd.tar.gz |
new function, and remove workspace->name field, instead just get the name
2002-11-03 Havoc Pennington <hp@pobox.com>
* src/workspace.c (meta_workspace_get_name): new function,
and remove workspace->name field, instead just get the
name from prefs each time
* src/screen.c (meta_screen_update_workspace_names): update the
gconf key to persist workspace names here, instead of changing
the names we use
* src/util.c (topic_name): add META_DEBUG_PREFS
* src/prefs.c: change NUM_COMMANDS to 32 to allow more custom
commands, implement workspace names
* src/metacity.schemas.in: add workspace_names/name_NN gconf keys.
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 d074ddbf..fe79edaf 100644 --- a/src/prefs.h +++ b/src/prefs.h @@ -41,7 +41,8 @@ typedef enum META_PREF_SCREEN_KEYBINDINGS, META_PREF_DISABLE_WORKAROUNDS, META_PREF_COMMANDS, - META_PREF_BUTTON_LAYOUT + META_PREF_BUTTON_LAYOUT, + META_PREF_WORKSPACE_NAMES } MetaPreference; typedef void (* MetaPrefsChangedFunc) (MetaPreference pref, @@ -75,6 +76,10 @@ MetaActionDoubleClickTitlebar meta_prefs_get_action_double_click_titlebar (void) void meta_prefs_set_num_workspaces (int n_workspaces); +const char* meta_prefs_get_workspace_name (int i); +void meta_prefs_change_workspace_name (int i, + const char *name); + /* Screen bindings */ #define META_KEYBINDING_WORKSPACE_1 "switch_to_workspace_1" #define META_KEYBINDING_WORKSPACE_2 "switch_to_workspace_2" |