[nautilus] typeahead-find: make sure the search widget is on-screen when maximized
- From: Stefano Teso <steso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] typeahead-find: make sure the search widget is on-screen when maximized
- Date: Sat, 26 Feb 2011 10:29:03 +0000 (UTC)
commit 089315b56f78113bd26d18bb40d0132b84954ebe
Author: Stefano Teso <steso src gnome org>
Date: Sat Feb 26 11:19:58 2011 +0100
typeahead-find: make sure the search widget is on-screen when maximized
https://bugzilla.gnome.org/show_bug.cgi?id=642953
libnautilus-private/nautilus-icon-container.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c
index 0ca9343..e6abf8a 100644
--- a/libnautilus-private/nautilus-icon-container.c
+++ b/libnautilus-private/nautilus-icon-container.c
@@ -4769,7 +4769,7 @@ nautilus_icon_container_search_position_func (NautilusIconContainer *container,
gtk_widget_get_preferred_size (search_dialog, &requisition, NULL);
- if (cont_x + cont_width - requisition.width > gdk_screen_get_width (screen)) {
+ if (cont_x + cont_width > gdk_screen_get_width (screen)) {
x = gdk_screen_get_width (screen) - requisition.width;
} else if (cont_x + cont_width - requisition.width < 0) {
x = 0;
@@ -4777,7 +4777,7 @@ nautilus_icon_container_search_position_func (NautilusIconContainer *container,
x = cont_x + cont_width - requisition.width;
}
- if (cont_y + cont_height > gdk_screen_get_height (screen)) {
+ if (cont_y + cont_height + requisition.height > gdk_screen_get_height (screen)) {
y = gdk_screen_get_height (screen) - requisition.height;
} else if (cont_y + cont_height < 0) { /* isn't really possible ... */
y = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]