summaryrefslogtreecommitdiff
path: root/src/prefs.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-10-04 02:28:57 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-10-04 02:28:57 +0000
commit7641c6f95200fdd23b75e85481b23219d950b337 (patch)
treed1c2ddd111ebdc908a6f79af9fd0848fbf719004 /src/prefs.h
parent261c9a74ef6f15c200ccd5ad06d765747d0477d0 (diff)
downloadmetacity-7641c6f95200fdd23b75e85481b23219d950b337.tar.gz
Button-reordering patch. Has all the code except actually installing a
2002-10-03 Havoc Pennington <hp@pobox.com> Button-reordering patch. Has all the code except actually installing a gconf schema and reading the gconf key in prefs.c. metacity-theme-viewer displays the button layouts for testing themes. * src/preview-widget.c (meta_preview_size_request): make up a width/height if no child widget * src/prefs.c (meta_prefs_get_button_layout): new function * src/frames.c: get the button layout from prefs and use it when drawing * src/theme.c (meta_frame_layout_calc_geometry): enhance to be able to lay out buttons in different arrangements (button_rect): draw the new button background rectangles (meta_theme_draw_frame): require a button layout argument (meta_theme_calc_geometry): pass in the button layout * src/preview-widget.h: mod to handle button layouts * src/theme-viewer.c: mod to handle button layouts
Diffstat (limited to 'src/prefs.h')
-rw-r--r--src/prefs.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/prefs.h b/src/prefs.h
index 8769bcee..b10432c1 100644
--- a/src/prefs.h
+++ b/src/prefs.h
@@ -38,7 +38,8 @@ typedef enum
META_PREF_WINDOW_KEYBINDINGS,
META_PREF_SCREEN_KEYBINDINGS,
META_PREF_DISABLE_WORKAROUNDS,
- META_PREF_COMMANDS
+ META_PREF_COMMANDS,
+ META_PREF_BUTTON_LAYOUT
} MetaPreference;
typedef void (* MetaPrefsChangedFunc) (MetaPreference pref,
@@ -66,6 +67,8 @@ const char* meta_prefs_get_command (int i);
char* meta_prefs_get_gconf_key_for_command (int i);
+void meta_prefs_get_button_layout (MetaButtonLayout *button_layout);
+
void meta_prefs_set_num_workspaces (int n_workspaces);
/* Screen bindings */