summaryrefslogtreecommitdiff
path: root/src/glade-command.c
diff options
context:
space:
mode:
authorJoaquín Cuenca Abela <cuenca@src.gnome.org>2003-06-19 22:37:27 +0000
committerJoaquín Cuenca Abela <cuenca@src.gnome.org>2003-06-19 22:37:27 +0000
commit9b5de02a0e71be8e213e800e907306ba66923478 (patch)
treebb75dc50d06691758b73bdceeace216b1509dbfd /src/glade-command.c
parent6b8db0a3d49f04267cd8ac898eae150f39d177a2 (diff)
downloadglade-9b5de02a0e71be8e213e800e907306ba66923478.tar.gz
Fix selection.
Diffstat (limited to 'src/glade-command.c')
-rw-r--r--src/glade-command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glade-command.c b/src/glade-command.c
index d45f5bd9..36abfa56 100644
--- a/src/glade-command.c
+++ b/src/glade-command.c
@@ -610,7 +610,7 @@ glade_command_create_execute (GladeCommandCreateDelete *me)
GladePlaceholder *placeholder = me->placeholder;
glade_project_add_widget (widget->project, widget, widget->parent);
- glade_project_selection_set (widget, TRUE);
+ glade_project_selection_set (widget->project, widget->widget, TRUE);
if (!GLADE_WIDGET_IS_TOPLEVEL (widget)) {
glade_placeholder_replace_with_widget (placeholder, widget);
@@ -812,7 +812,7 @@ glade_command_paste_execute (GladeCommandCutPaste *me)
}
glade_project_add_widget (project, widget, parent);
- glade_project_selection_set (widget, TRUE);
+ glade_project_selection_set (widget->project, widget->widget, TRUE);
if (GTK_IS_WIDGET (widget->widget))
gtk_widget_show_all (GTK_WIDGET (widget->widget));
@@ -938,7 +938,7 @@ glade_command_paste (GladePlaceholder *placeholder)
return;
}
- g_return_if_fail (glade_placeholder_is (placeholder));
+ g_return_if_fail (GLADE_IS_PLACEHOLDER (placeholder));
gpw = glade_project_window_get ();
widget = gpw->clipboard->curr;