The remove_widget signal must

pass a GladeWidget as data.
This commit is contained in:
Paolo Borelli 2003-08-14 16:54:00 +00:00
parent a8bec0bbe5
commit ed4441675c
2 changed files with 8 additions and 1 deletions

View File

@ -2,6 +2,8 @@
* src/glade-widget-class.[ch]: reapply minor cleanups after Joaquin's
merge.
* src/glade-project.c (glade_project_remove_widget_real):the
remove_widget signal should pass a GladeWidget as data, not a GtkWidget.
2003-08-08 Archit Baweja <bighead@users.sourceforge.net>

View File

@ -247,6 +247,8 @@ static void
glade_project_remove_widget_real (GladeProject *project,
GtkWidget *widget)
{
GladeWidget *gwidget;
if (GLADE_IS_PLACEHOLDER (widget))
return;
@ -262,6 +264,9 @@ glade_project_remove_widget_real (GladeProject *project,
}
}
gwidget = glade_widget_get_from_gtk_widget (widget);
g_assert (GLADE_IS_WIDGET (gwidget));
project->selection = g_list_remove (project->selection, widget);
glade_project_selection_changed (project);
@ -269,7 +274,7 @@ glade_project_remove_widget_real (GladeProject *project,
g_signal_emit (G_OBJECT (project),
glade_project_signals [REMOVE_WIDGET],
0,
widget);
gwidget);
}
/**