[epiphany] gedit-overlay: sync with upstream
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] gedit-overlay: sync with upstream
- Date: Sat, 19 Feb 2011 17:32:01 +0000 (UTC)
commit 8efe0b585c9c6926ef56f572e9069705ca79b552
Author: Xan Lopez <xan gnome org>
Date: Sat Feb 19 18:31:03 2011 +0100
gedit-overlay: sync with upstream
lib/widgets/gedit-overlay.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/lib/widgets/gedit-overlay.c b/lib/widgets/gedit-overlay.c
index 902f13d..bad7825 100644
--- a/lib/widgets/gedit-overlay.c
+++ b/lib/widgets/gedit-overlay.c
@@ -230,6 +230,10 @@ gedit_overlay_size_allocate (GtkWidget *widget,
alloc.x = offset;
alloc.y = main_alloc.height - req.height;
break;
+ case GEDIT_OVERLAY_CHILD_POSITION_SOUTH_EAST:
+ alloc.x = main_alloc.width - req.width - offset;
+ alloc.y = main_alloc.height - req.height;
+ break;
default:
alloc.x = 0;
alloc.y = 0;
@@ -304,6 +308,9 @@ overlay_add (GtkContainer *overlay,
{
child = gedit_overlay_child_new (widget);
gtk_widget_show (GTK_WIDGET (child));
+
+ g_signal_connect_swapped (widget, "destroy",
+ G_CALLBACK (gtk_widget_destroy), child);
}
add_toplevel_widget (GEDIT_OVERLAY (overlay), GTK_WIDGET (child));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]