gtk+ r19395 - in trunk: . gtk
- From: herzi svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r19395 - in trunk: . gtk
- Date: Fri, 25 Jan 2008 00:19:19 +0000 (GMT)
Author: herzi
Date: Fri Jan 25 00:19:18 2008
New Revision: 19395
URL: http://svn.gnome.org/viewvc/gtk+?rev=19395&view=rev
Log:
2008-01-25 Sven Herzberg <sven imendio com>
Reviewed by Johan Dahlin.
* gtk/gtkuimanager.c (gtk_ui_manager_remove_ui): emit a warning if
this is called with something that's not a GtkUIManager
Modified:
trunk/ChangeLog
trunk/gtk/gtkuimanager.c
Modified: trunk/gtk/gtkuimanager.c
==============================================================================
--- trunk/gtk/gtkuimanager.c (original)
+++ trunk/gtk/gtkuimanager.c Fri Jan 25 00:19:18 2008
@@ -1850,6 +1850,8 @@
gtk_ui_manager_remove_ui (GtkUIManager *self,
guint merge_id)
{
+ g_return_if_fail (GTK_IS_UI_MANAGER (self));
+
g_node_traverse (self->private_data->root_node,
G_POST_ORDER, G_TRAVERSE_ALL, -1,
remove_ui, GUINT_TO_POINTER (merge_id));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]