mirror of
https://gitlab.gnome.org/GNOME/glade.git
synced 2025-10-06 00:05:26 -04:00
The remove_widget signal must
pass a GladeWidget as data.
This commit is contained in:
parent
a8bec0bbe5
commit
ed4441675c
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user