summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@src.gnome.org>2002-02-27 00:05:01 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-02-27 00:05:01 +0000
commitdf9151201f12a11736c317aa8c56847fb39de434 (patch)
treec3649aed3eb368588f01e4f2e09fc84902a1994d
parent386f8d1f622e90413d055d8cb417b3650ad2164d (diff)
downloadgdk-pixbuf-df9151201f12a11736c317aa8c56847fb39de434.tar.gz
ue Feb 26 18:58:49 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkaccelgroup.c (gtk_accelerator_set_default_mod_mask): OR in the three default modifiers to any value passed in by the caller, so that the caller won't break the the default bindings. (#70142, Jody Goldberg, though he wasn't in favor of this particular way of solving it.)
-rw-r--r--ChangeLog8
-rw-r--r--ChangeLog.pre-2-08
-rw-r--r--ChangeLog.pre-2-108
-rw-r--r--ChangeLog.pre-2-28
-rw-r--r--ChangeLog.pre-2-48
-rw-r--r--ChangeLog.pre-2-68
-rw-r--r--ChangeLog.pre-2-88
-rw-r--r--gtk/gtkaccelgroup.c5
8 files changed, 60 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 45b06e571..8940ffb0b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Tue Feb 26 18:58:49 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkaccelgroup.c (gtk_accelerator_set_default_mod_mask):
+ OR in the three default modifiers to any value passed
+ in by the caller, so that the caller won't break the
+ the default bindings. (#70142, Jody Goldberg, though he
+ wasn't in favor of this particular way of solving it.)
+
Tue Feb 26 18:47:44 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_add_mnemonic): Append
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 45b06e571..8940ffb0b 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,11 @@
+Tue Feb 26 18:58:49 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkaccelgroup.c (gtk_accelerator_set_default_mod_mask):
+ OR in the three default modifiers to any value passed
+ in by the caller, so that the caller won't break the
+ the default bindings. (#70142, Jody Goldberg, though he
+ wasn't in favor of this particular way of solving it.)
+
Tue Feb 26 18:47:44 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_add_mnemonic): Append
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 45b06e571..8940ffb0b 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,11 @@
+Tue Feb 26 18:58:49 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkaccelgroup.c (gtk_accelerator_set_default_mod_mask):
+ OR in the three default modifiers to any value passed
+ in by the caller, so that the caller won't break the
+ the default bindings. (#70142, Jody Goldberg, though he
+ wasn't in favor of this particular way of solving it.)
+
Tue Feb 26 18:47:44 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_add_mnemonic): Append
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 45b06e571..8940ffb0b 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,11 @@
+Tue Feb 26 18:58:49 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkaccelgroup.c (gtk_accelerator_set_default_mod_mask):
+ OR in the three default modifiers to any value passed
+ in by the caller, so that the caller won't break the
+ the default bindings. (#70142, Jody Goldberg, though he
+ wasn't in favor of this particular way of solving it.)
+
Tue Feb 26 18:47:44 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_add_mnemonic): Append
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 45b06e571..8940ffb0b 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,11 @@
+Tue Feb 26 18:58:49 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkaccelgroup.c (gtk_accelerator_set_default_mod_mask):
+ OR in the three default modifiers to any value passed
+ in by the caller, so that the caller won't break the
+ the default bindings. (#70142, Jody Goldberg, though he
+ wasn't in favor of this particular way of solving it.)
+
Tue Feb 26 18:47:44 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_add_mnemonic): Append
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 45b06e571..8940ffb0b 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,11 @@
+Tue Feb 26 18:58:49 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkaccelgroup.c (gtk_accelerator_set_default_mod_mask):
+ OR in the three default modifiers to any value passed
+ in by the caller, so that the caller won't break the
+ the default bindings. (#70142, Jody Goldberg, though he
+ wasn't in favor of this particular way of solving it.)
+
Tue Feb 26 18:47:44 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_add_mnemonic): Append
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 45b06e571..8940ffb0b 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,11 @@
+Tue Feb 26 18:58:49 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkaccelgroup.c (gtk_accelerator_set_default_mod_mask):
+ OR in the three default modifiers to any value passed
+ in by the caller, so that the caller won't break the
+ the default bindings. (#70142, Jody Goldberg, though he
+ wasn't in favor of this particular way of solving it.)
+
Tue Feb 26 18:47:44 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwindow.c (gtk_window_add_mnemonic): Append
diff --git a/gtk/gtkaccelgroup.c b/gtk/gtkaccelgroup.c
index 39db5d633..e2d7d9ce0 100644
--- a/gtk/gtkaccelgroup.c
+++ b/gtk/gtkaccelgroup.c
@@ -1158,6 +1158,8 @@ gtk_accelerator_name (guint accelerator_key,
* accelerators. The default mod mask is #GDK_CONTROL_MASK |
* #GDK_SHIFT_MASK | #GDK_MOD1_MASK, that is, Control, Shift, and Alt.
* Other modifiers will by default be ignored by #GtkAccelGroup.
+ * You must include at least the three default modifiers in any
+ * value you pass to this function.
*
* The default mod mask should be changed on application startup,
* before using any accelerator groups.
@@ -1165,7 +1167,8 @@ gtk_accelerator_name (guint accelerator_key,
void
gtk_accelerator_set_default_mod_mask (GdkModifierType default_mod_mask)
{
- default_accel_mod_mask = default_mod_mask & GDK_MODIFIER_MASK;
+ default_accel_mod_mask = (default_mod_mask & GDK_MODIFIER_MASK) |
+ (GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK);
}
/**