[glade/glade-3-12] Fixed compile and runtime warning
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/glade-3-12] Fixed compile and runtime warning
- Date: Sat, 5 May 2012 17:57:52 +0000 (UTC)
commit 509849d3bcbe7e6d81ebbfb6ad36403efc4111dd
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Thu May 3 16:48:47 2012 -0300
Fixed compile and runtime warning
src/glade-window.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/glade-window.c b/src/glade-window.c
index 80bdd7e..5a83cd9 100644
--- a/src/glade-window.c
+++ b/src/glade-window.c
@@ -1543,18 +1543,19 @@ cut_cb (GtkAction * action, GladeWindow * window)
static void
paste_cb (GtkAction * action, GladeWindow * window)
{
+ GtkWidget *placeholder;
GladeProject *project;
if (!window->priv->active_view)
return;
project = glade_design_view_get_project (window->priv->active_view);
+ placeholder = glade_util_get_placeholder_from_pointer (GTK_CONTAINER (window));
/* If this action is activated with a key binging (ctrl-v) the widget will be
* pasted over the placeholder below the default pointer.
*/
- glade_project_command_paste (project,
- glade_util_get_placeholder_from_pointer (GTK_CONTAINER (window)));
+ glade_project_command_paste (project, placeholder ? GLADE_PLACEHOLDER (placeholder) : NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]