gtk+ r20638 - in trunk: . gtk
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20638 - in trunk: . gtk
- Date: Fri, 20 Jun 2008 13:34:17 +0000 (UTC)
Author: mitch
Date: Fri Jun 20 13:34:17 2008
New Revision: 20638
URL: http://svn.gnome.org/viewvc/gtk+?rev=20638&view=rev
Log:
2008-06-20 Michael Natterer <mitch imendio com>
* gtk/gtkaccelgroup.[ch]: fix some formatting and whitespace in
the code merged from the GSEAL branch.
Modified:
trunk/ChangeLog
trunk/gtk/gtkaccelgroup.c
trunk/gtk/gtkaccelgroup.h
Modified: trunk/gtk/gtkaccelgroup.c
==============================================================================
--- trunk/gtk/gtkaccelgroup.c (original)
+++ trunk/gtk/gtkaccelgroup.c Fri Jun 20 13:34:17 2008
@@ -88,12 +88,13 @@
"Is the accel group locked",
FALSE,
G_PARAM_READABLE));
+
g_object_class_install_property (object_class,
PROP_MODIFIER_MASK,
g_param_spec_enum ("modifier-mask",
"Modifier Mask",
"Modifier Mask",
- gdk_modifier_type_get_type (),
+ GDK_TYPE_MODIFIER_TYPE,
0,
G_PARAM_READABLE));
@@ -179,17 +180,18 @@
{
GtkAccelGroup *accel_group = GTK_ACCEL_GROUP (object);
- switch (param_id) {
- case PROP_IS_LOCKED:
- g_value_set_boolean (value, accel_group->lock_count > 0);
- break;
- case PROP_MODIFIER_MASK:
- g_value_set_enum (value, accel_group->modifier_mask);
- break;
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
- break;
- };
+ switch (param_id)
+ {
+ case PROP_IS_LOCKED:
+ g_value_set_boolean (value, accel_group->lock_count > 0);
+ break;
+ case PROP_MODIFIER_MASK:
+ g_value_set_enum (value, accel_group->modifier_mask);
+ break;
+ default:
+ G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
+ break;
+ }
}
static void
@@ -217,14 +219,14 @@
/**
* gtk_accel_group_get_is_locked:
* @accel_group: a #GtkAccelGroup
+ *
* @returns: %TRUE if there are 1 or more locks on the @accel_group,
- * %FALSE otherwise.
+ * %FALSE otherwise.
*
* Locks are added and removed using gtk_accel_group_lock() and
- * gtk_accel_group_unlock().
- *
+ * gtk_accel_group_unlock().
*/
-gboolean
+gboolean
gtk_accel_group_get_is_locked (GtkAccelGroup *accel_group)
{
g_return_val_if_fail (GTK_IS_ACCEL_GROUP (accel_group), FALSE);
@@ -235,8 +237,9 @@
/**
* gtk_accel_group_get_modifier_mask:
* @accel_group: a #GtkAccelGroup
+ *
* @returns: #GdkModifierType representing the mask for this
- * @accel_group. For example, #GDK_CONTROL_MASK, #GDK_SHIFT_MASK, etc.
+ * @accel_group. For example, #GDK_CONTROL_MASK, #GDK_SHIFT_MASK, etc.
*/
GdkModifierType
gtk_accel_group_get_modifier_mask (GtkAccelGroup *accel_group)
Modified: trunk/gtk/gtkaccelgroup.h
==============================================================================
--- trunk/gtk/gtkaccelgroup.h (original)
+++ trunk/gtk/gtkaccelgroup.h Fri Jun 20 13:34:17 2008
@@ -73,10 +73,11 @@
struct _GtkAccelGroup
{
GObject parent;
- guint GSEAL (lock_count);
+
+ guint GSEAL (lock_count);
GdkModifierType GSEAL (modifier_mask);
GSList *GSEAL (acceleratables);
- guint GSEAL (n_accels);
+ guint GSEAL (n_accels);
GtkAccelGroupEntry *GSEAL (priv_accels);
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]