[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/11] gtkxpaned: Remove write-only variables.
From: |
Ben Pfaff |
Subject: |
[PATCH 05/11] gtkxpaned: Remove write-only variables. |
Date: |
Sun, 15 Apr 2012 16:58:27 -0700 |
---
lib/gtk-contrib/gtkxpaned.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/lib/gtk-contrib/gtkxpaned.c b/lib/gtk-contrib/gtkxpaned.c
index 19621c3..96f89ad 100644
--- a/lib/gtk-contrib/gtkxpaned.c
+++ b/lib/gtk-contrib/gtkxpaned.c
@@ -2412,8 +2412,6 @@ gtk_xpaned_compute_position (GtkXPaned* xpaned,
GdkPoint old_max_position;
gint handle_size;
gint border_width = GTK_CONTAINER (xpaned)->border_width;
- float fX;
- float fY;
g_return_if_fail (GTK_IS_XPANED (xpaned));
@@ -2424,9 +2422,6 @@ gtk_xpaned_compute_position (GtkXPaned* xpaned,
old_max_position.x = xpaned->max_position.x;
old_max_position.y = xpaned->max_position.y;
- fX = 100.0f * (float) old_position.x / (float) allocation->width;
- fY = 100.0f * (float) old_position.y / (float) allocation->height;
-
xpaned->min_position.x = xpaned->top_left_child_shrink ? 0 :
top_left_child_req->width;
xpaned->min_position.y = xpaned->top_left_child_shrink ? 0 :
top_left_child_req->height;
@@ -2574,9 +2569,6 @@ gtk_xpaned_compute_position (GtkXPaned* xpaned,
xpaned->last_allocation.width = allocation->width;
xpaned->last_allocation.height = allocation->height;
-
- fX = 100.0f * (float) old_position.x / (float) allocation->width;
- fY = 100.0f * (float) old_position.y / (float) allocation->height;
}
static void gtk_xpaned_set_saved_focus (GtkXPaned* xpaned, GtkWidget* widget)
--
1.7.2.5
- [PATCH 00/11] first batch of psppsheet changes, Ben Pfaff, 2012/04/15
- [PATCH 01/11] psppire-data-editor: Drop psppire_data_editor_set_font() redundancy., Ben Pfaff, 2012/04/15
- [PATCH 04/11] psppire-buttonbox: Fix style in header file., Ben Pfaff, 2012/04/15
- [PATCH 03/11] psppire-data-store: Use NULL for a null pointer., Ben Pfaff, 2012/04/15
- [PATCH 02/11] psppire-data-store: Use PSPPIRE namespace instead of GTK+'s., Ben Pfaff, 2012/04/15
- [PATCH 06/11] find-dialog: Change "Cancel" button to "Close" button., Ben Pfaff, 2012/04/15
- [PATCH 05/11] gtkxpaned: Remove write-only variables.,
Ben Pfaff <=
- [PATCH 08/11] psppire-dict: Get rid of static var in auto_generate_var_name()., Ben Pfaff, 2012/04/15
- [PATCH 07/11] Allow dictionary 'var_deleted' callback to examine the deleted var., Ben Pfaff, 2012/04/15
- [PATCH 09/11] psppire-dict: Make auto_generate_var_name() public, and rename., Ben Pfaff, 2012/04/15
- [PATCH 10/11] psppire-dict: Return new var from psppire_dict_insert_variable()., Ben Pfaff, 2012/04/15
- [PATCH 11/11] psppire-dict: Better validate idx arg in psppire_dict_get_variable()., Ben Pfaff, 2012/04/15
- Re: [PATCH 00/11] first batch of psppsheet changes, John Darrington, 2012/04/16