[gtk+] Remove an unneeded variable
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Remove an unneeded variable
- Date: Fri, 23 Dec 2011 05:37:18 +0000 (UTC)
commit 53ce519b1fa59bbb0753f890a1ded4510b7d5fdd
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 23 00:38:59 2011 +0000
Remove an unneeded variable
gtk/gtkmenu.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index 2ab683b..2d29caa 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -4613,7 +4613,6 @@ gtk_menu_position (GtkMenu *menu,
GtkRequisition requisition;
gint x, y;
gint scroll_offset;
- gint menu_height;
GdkScreen *screen;
GdkScreen *pointer_screen;
GdkRectangle monitor;
@@ -4786,12 +4785,10 @@ gtk_menu_position (GtkMenu *menu,
if (priv->initially_pushed_in)
{
- menu_height = requisition.height;
-
- if (y + menu_height > monitor.y + monitor.height)
+ if (y + requisition.height > monitor.y + monitor.height)
{
- scroll_offset -= y + menu_height - (monitor.y + monitor.height);
- y = (monitor.y + monitor.height) - menu_height;
+ scroll_offset -= y + requisition.height - (monitor.y + monitor.height);
+ y = (monitor.y + monitor.height) - requisition.height;
}
if (y < monitor.y)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]