summaryrefslogtreecommitdiff
path: root/src/glade-command.c
diff options
context:
space:
mode:
authorArchit Baweja <bighead@src.gnome.org>2002-04-12 09:01:35 +0000
committerArchit Baweja <bighead@src.gnome.org>2002-04-12 09:01:35 +0000
commitd6a65a236021e44891aef4f746b591e59412ff6d (patch)
treed3d9319141b27f10a0a5ca8556361712267db3a6 /src/glade-command.c
parent87252703f95e70409e87f7a147b208e3a6951217 (diff)
downloadglade-d6a65a236021e44891aef4f746b591e59412ff6d.tar.gz
glade_clipboard_copy works better with the help of glade_widget_clone
* glade_clipboard_copy works better with the help of glade_widget_clone * Fixed GtkTreeStore creation in GladeClipboardView. Fixes lotta current and future bugs.
Diffstat (limited to 'src/glade-command.c')
-rw-r--r--src/glade-command.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/glade-command.c b/src/glade-command.c
index 8de6a719..d05379f0 100644
--- a/src/glade-command.c
+++ b/src/glade-command.c
@@ -522,20 +522,9 @@ glade_command_delete_execute (GladeCommandCreateDelete *me)
parent = widget->parent;
if (parent) {
- GladePlaceholder *placeholder;
-
- /* Replace the slot it was occuping with a placeholder */
gtk_widget_ref (widget->widget);
- placeholder = glade_placeholder_new (widget->parent);
-
- if (widget->parent->class->placeholder_replace)
- widget->parent->class->placeholder_replace (widget->widget, GTK_WIDGET (placeholder), widget->parent->widget);
-
- /* Remove it from the parent's child list */
- parent->children = g_list_remove (parent->children, widget);
- me->placeholder = placeholder;
- }
- else {
+ me->placeholder = glade_widget_replace_with_placeholder (widget);
+ } else {
me->placeholder = NULL;
}