diff options
author | Elijah Newren <newren gmail com> | 2006-01-21 19:18:51 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2006-01-21 19:18:51 +0000 |
commit | c0f4b9d2d470ea4460ac823e393802e2c2c31b9e (patch) | |
tree | 41a20cfd6a4026e86b099e9c6b924edce6eb3f42 /src/prefs.c | |
parent | e44e8c93aaa1293a68d8391bce71e706828064b1 (diff) | |
download | metacity-c0f4b9d2d470ea4460ac823e393802e2c2c31b9e.tar.gz |
Patch from Dick Marinus to add a minimize double-click-titlebar-action;
2006-01-21 Elijah Newren <newren gmail com>
* src/common.h (enum MetaActionDoubleClickTitlebar):
* src/frames.c (meta_frames_button_press_event):
* src/prefs.c (action_double_click_titlebar_from_string):
* src/metacity.schemas.in:
Patch from Dick Marinus to add a minimize
double-click-titlebar-action; slightly modified to also include a
none action. #300210.
Diffstat (limited to 'src/prefs.c')
-rw-r--r-- | src/prefs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/prefs.c b/src/prefs.c index 4e5c9dc1..44751a73 100644 --- a/src/prefs.c +++ b/src/prefs.c @@ -1477,6 +1477,10 @@ action_double_click_titlebar_from_string (const char *str) return META_ACTION_DOUBLE_CLICK_TITLEBAR_TOGGLE_SHADE; else if (strcmp (str, "toggle_maximize") == 0) return META_ACTION_DOUBLE_CLICK_TITLEBAR_TOGGLE_MAXIMIZE; + else if (strcmp (str, "minimize") == 0) + return META_ACTION_DOUBLE_CLICK_TITLEBAR_MINIMIZE; + else if (strcmp (str, "none") == 0) + return META_ACTION_DOUBLE_CLICK_TITLEBAR_NONE; else return META_ACTION_DOUBLE_CLICK_TITLEBAR_LAST; } |