Fix warnings from calling g_object_notify() on a GtkAccelGroup without

* gtk/gtkaccelgroup.c: Fix warnings from calling
	g_object_notify() on a GtkAccelGroup without casting to a
	GObject.

svn path=/trunk/; revision=20652
This commit is contained in:
Martyn James Russell 2008-06-20 15:10:00 +00:00
parent 755a662ff2
commit c8322b8c0e
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-06-20 Martyn Russell <martyn@imendio.com>
* gtk/gtkaccelgroup.c: Fix warnings from calling
g_object_notify() on a GtkAccelGroup without casting to a
GObject.
2008-06-20 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkcolorsel.c: Modernize and order things as most

View File

@ -394,7 +394,7 @@ gtk_accel_group_lock (GtkAccelGroup *accel_group)
if (accel_group->lock_count == 1) {
/* State change from unlocked to locked */
g_object_notify (accel_group, "is-locked");
g_object_notify (G_OBJECT (accel_group), "is-locked");
}
}
@ -414,7 +414,7 @@ gtk_accel_group_unlock (GtkAccelGroup *accel_group)
if (accel_group->lock_count < 1) {
/* State change from locked to unlocked */
g_object_notify (accel_group, "is-locked");
g_object_notify (G_OBJECT (accel_group), "is-locked");
}
}