[nautilus] window-slot: adapt to overlay API changes
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] window-slot: adapt to overlay API changes
- Date: Fri, 25 Feb 2011 02:10:00 +0000 (UTC)
commit c024477bd59761cfa683117dafe47cd08fda3f52
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Feb 24 20:50:25 2011 -0500
window-slot: adapt to overlay API changes
src/nautilus-window-slot.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 916a5df..f914422 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -195,7 +195,7 @@ nautilus_window_slot_init (NautilusWindowSlot *slot)
gtk_widget_show (extras_vbox);
slot->view_box = gtk_vbox_new (FALSE, 0);
- slot->view_overlay = gedit_overlay_new (slot->view_box);
+ slot->view_overlay = gedit_overlay_new (slot->view_box, NULL);
gtk_box_pack_start (GTK_BOX (content_box), slot->view_overlay, TRUE, TRUE, 0);
gtk_widget_show (slot->view_overlay);
gtk_widget_show (slot->view_box);
@@ -470,6 +470,11 @@ nautilus_window_slot_set_content_view_widget (NautilusWindowSlot *slot,
slot->content_view = new_view;
g_object_ref (slot->content_view);
+ g_object_set (slot->view_overlay,
+ "relative-widget",
+ slot->content_view,
+ NULL);
+
/* connect new view */
nautilus_window_connect_content_view (window, new_view);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]