Make the prefs less squashed looking, add another entry for OSX modifiers.

- Defaults are probably still wrong, but at least they are actual
	keys.
This commit is contained in:
nick_m 2015-05-21 23:47:32 +10:00
parent 186736043c
commit 5d176eefa6
2 changed files with 11 additions and 10 deletions

View file

@ -271,7 +271,8 @@ static const struct {
{ "Option", GDK_MOD1_MASK },
{ "Command-Shift", GDK_META_MASK|GDK_SHIFT_MASK },
{ "Command-Option", GDK_MOD1_MASK|GDK_META_MASK },
{ "Shift-Option", GDK_SHIFT_MASK|GDK_MOD1_MASK },
{ "Option-Shift", GDK_MOD1_MASK|GDK_SHIFT_MASK },
{ "Control-Shift", GDK_CONTROL_MASK|GDK_SHIFT_MASK },
{ "Shift-Command-Option", GDK_MOD5_MASK|GDK_SHIFT_MASK|GDK_META_MASK },
#else
@ -347,7 +348,7 @@ public:
l = manage (left_aligned_label (_("When Clicking:")));
l->set_name ("OptionEditorHeading");
t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
t->attach (*l, col, col + 2, row, row + 1, FILL | EXPAND, FILL);
++row;
col = 1;
@ -430,7 +431,7 @@ public:
l = manage (left_aligned_label (_("When Beginning a Drag:")));
l->set_name ("OptionEditorHeading");
t->attach (*l, 0, 1, row, row + 1, FILL | EXPAND, FILL);
t->attach (*l, 0, 2, row, row + 1, FILL | EXPAND, FILL);
++row;
col = 1;
@ -456,7 +457,7 @@ public:
l = manage (left_aligned_label (_("When Beginning a Trim:")));
l->set_name ("OptionEditorHeading");
t->attach (*l, 0, 1, row, row + 1, FILL | EXPAND, FILL);
t->attach (*l, 0, 2, row, row + 1, FILL | EXPAND, FILL);
++row;
col = 1;
@ -546,7 +547,7 @@ public:
l = manage (left_aligned_label (_("While Dragging:")));
l->set_name ("OptionEditorHeading");
t->attach (*l, 0, 1, row, row + 1, FILL | EXPAND, FILL);
t->attach (*l, 0, 2, row, row + 1, FILL | EXPAND, FILL);
++row;
col = 1;
@ -562,7 +563,7 @@ public:
}
}
l = manage (left_aligned_label (_("Ignore snap using:")));
l = manage (left_aligned_label (_("Ignore snap by including:")));
l->set_name ("OptionsLabel");
t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
@ -592,7 +593,7 @@ public:
l = manage (left_aligned_label (_("While Trimming:")));
l->set_name ("OptionEditorHeading");
t->attach (*l, 0, 1, row, row + 1, FILL | EXPAND, FILL);
t->attach (*l, 0, 2, row, row + 1, FILL | EXPAND, FILL);
++row;
col = 1;
@ -618,7 +619,7 @@ public:
l = manage (left_aligned_label (_("While Dragging Control Points:")));
l->set_name ("OptionEditorHeading");
t->attach (*l, 0, 1, row, row + 1, FILL | EXPAND, FILL);
t->attach (*l, 0, 2, row, row + 1, FILL | EXPAND, FILL);
++row;
col = 1;

View file

@ -76,8 +76,8 @@ const char* Keyboard::level4_modifier_name() { return _("Option"); }
const char* Keyboard::copy_modifier_name() { return _("Control"); }
const char* Keyboard::rangeselect_modifier_name() { return S_("Key|Shift"); }
guint Keyboard::snap_mod = GDK_MOD3_MASK|Keyboard::Level4Modifier; // XXX this is probably completely wrong
guint Keyboard::snap_delta_mod = GDK_MOD3_MASK;
guint Keyboard::snap_mod = Keyboard::Level4Modifier|Keyboard::TertiaryModifier; // XXX this is probably completely wrong
guint Keyboard::snap_delta_mod = Keyboard::Level4Modifier;
#else