diff options
author | Paolo Borelli <pborelli@src.gnome.org> | 2003-08-07 17:07:15 +0000 |
---|---|---|
committer | Paolo Borelli <pborelli@src.gnome.org> | 2003-08-07 17:07:15 +0000 |
commit | e1005445a19b5487a4915ef1dc56960714fbdb75 (patch) | |
tree | 9dfd6bf9fa8ad5a4bc0bb6e86abb57e3cf917df7 /src/glade-command.c | |
parent | 4a30c02b6aa159ae2514a4645f16af621b064414 (diff) | |
download | glade-e1005445a19b5487a4915ef1dc56960714fbdb75.tar.gz |
Remove glade-project-window.h dep from
glade-utils.
Diffstat (limited to 'src/glade-command.c')
-rw-r--r-- | src/glade-command.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/glade-command.c b/src/glade-command.c index 406181c4..4661cbdc 100644 --- a/src/glade-command.c +++ b/src/glade-command.c @@ -902,14 +902,15 @@ glade_command_paste (GladePlaceholder *placeholder) GladeWidget *widget; GladeWidget *parent; - if (placeholder == NULL) { - glade_util_ui_warn (_("Placeholder not selected!")); + gpw = glade_project_window_get (); + + if (!placeholder) { + glade_util_ui_warn (gpw->window, _("Placeholder not selected!")); return; } g_return_if_fail (GLADE_IS_PLACEHOLDER (placeholder)); - gpw = glade_project_window_get (); widget = gpw->clipboard->curr; if (widget == NULL) @@ -923,8 +924,12 @@ glade_command_paste (GladePlaceholder *placeholder) void glade_command_cut (GladeWidget *widget) { - if (widget == NULL) { - glade_util_ui_warn (_("No widget selected!")); + GladeProjectWindow *gpw; + + gpw = glade_project_window_get (); + + if (!widget) { + glade_util_ui_warn (gpw->window, _("No widget selected!")); return; } @@ -932,3 +937,4 @@ glade_command_cut (GladeWidget *widget) glade_command_cut_paste_common (widget, NULL, widget->project, TRUE); } + |