projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a930178
)
gtkxpaned: Remove write-only variables.
author
Ben Pfaff
<blp@cs.stanford.edu>
Mon, 30 Jan 2012 00:31:28 +0000
(16:31 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 17 Apr 2012 02:22:15 +0000
(19:22 -0700)
lib/gtk-contrib/gtkxpaned.c
patch
|
blob
|
history
diff --git
a/lib/gtk-contrib/gtkxpaned.c
b/lib/gtk-contrib/gtkxpaned.c
index 19621c39ff56a377ee5313fee9ad82ebcbb6bfbc..96f89ada7df785b0f3416daeb83d894820a3e8a2 100644
(file)
--- 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;
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));
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;
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;
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;
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)
}
static void gtk_xpaned_set_saved_focus (GtkXPaned* xpaned, GtkWidget* widget)