diff options
author | Juan Pablo Ugarte <jp@synctv.com> | 2010-09-09 14:33:51 -0300 |
---|---|---|
committer | Juan Pablo Ugarte <jp@synctv.com> | 2010-09-09 14:33:51 -0300 |
commit | c7067041b2f9d87cd9ae3ffe52f535d1b82ed506 (patch) | |
tree | aa0c137508a4518965146d6acc6f539e5fc6954f /gladeui/glade-popup.c | |
parent | 070c49345892fe005c47d11436dec9f946999233 (diff) | |
download | glade-c7067041b2f9d87cd9ae3ffe52f535d1b82ed506.tar.gz |
First try to make GladeDesignLayout use a GdkOffscreen to render its child instead of acutally packing it
Diffstat (limited to 'gladeui/glade-popup.c')
-rw-r--r-- | gladeui/glade-popup.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gladeui/glade-popup.c b/gladeui/glade-popup.c index 5c8679fc..f6c33abf 100644 --- a/gladeui/glade-popup.c +++ b/gladeui/glade-popup.c @@ -498,9 +498,14 @@ glade_popup_create_menu (GladeWidget *widget, /* paste is placholder specific when the popup is on a placeholder */ sensitive = glade_clipboard_get_has_selection (glade_app_get_clipboard ()); non_window = FALSE; + for (list = glade_app_get_clipboard ()->selection; list; list = list->next) - if (!GTK_IS_WINDOW (GLADE_WIDGET (list->data)->object)) + { + GladeWidget *gwidget = GLADE_WIDGET (list->data); + if (!GTK_IS_WIDGET (gwidget->object) || + !gtk_widget_get_has_window (GTK_WIDGET (gwidget->object))) non_window = TRUE; + } if (placeholder) glade_popup_append_item (popup_menu, GTK_STOCK_PASTE, NULL, NULL, sensitive, |