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.
This commit is contained in:

committed by
Havoc Pennington

parent
7f36a8c7d1
commit
6a1abc7482
@@ -641,7 +641,7 @@ meta_core_get_menu_accelerator (MetaMenuOp menu_op,
|
||||
}
|
||||
}
|
||||
|
||||
char *
|
||||
const char*
|
||||
meta_core_get_workspace_name_with_index (Display *xdisplay,
|
||||
Window xroot,
|
||||
int index)
|
||||
@@ -654,7 +654,7 @@ meta_core_get_workspace_name_with_index (Display *xdisplay,
|
||||
screen = meta_display_screen_for_root (display, xroot);
|
||||
g_assert (screen != NULL);
|
||||
workspace = meta_screen_get_workspace_by_index (screen, index);
|
||||
return (workspace != NULL) ? workspace->name : NULL;
|
||||
return workspace ? meta_workspace_get_name (workspace) : NULL;
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
Reference in New Issue
Block a user