aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnu.org>2000-04-12 13:27:59 +0800
committerMiguel de Icaza <miguel@src.gnome.org>2000-04-12 13:27:59 +0800
commit969fb39532b112c2464dac3052e3650b6a72d1b2 (patch)
treea719f0800e543b849eff56f7867d38b277616d54 /widgets/table
parent3ef836d8a78e2d9b9026810b3a5bb9600319342c (diff)
downloadgsoc2013-evolution-969fb39532b112c2464dac3052e3650b6a72d1b2.tar.gz
gsoc2013-evolution-969fb39532b112c2464dac3052e3650b6a72d1b2.tar.zst
gsoc2013-evolution-969fb39532b112c2464dac3052e3650b6a72d1b2.zip
Reset resize_guide here.
2000-04-12 Miguel de Icaza <miguel@gnu.org> * e-table-header-item.c (ethi_end_resize): Reset resize_guide here. svn path=/trunk/; revision=2405
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table-header-item.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index e558eaa097..d39a1f81d9 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -384,7 +384,6 @@ ethi_add_drop_marker (ETableHeaderItem *ethi, int col)
GTK_WIDGET (GNOME_CANVAS_ITEM (ethi)->canvas)->window,
&rx, &ry);
- printf ("Offset: %d, Location: %d\n", x, rx);
gtk_widget_set_uposition (arrow_down, rx + x - ARROW_PTR, ry - ARROW_DOWN_HEIGHT);
gtk_widget_show_all (arrow_down);
@@ -691,10 +690,6 @@ ethi_draw (GnomeCanvasItem *item, GdkDrawable *drawable, int x, int y, int width
GHashTable *arrows = g_hash_table_new (NULL, NULL);
gint group_indent = 0;
-#if 0
- printf ("My coords are: %g %g %g %g\n",
- item->x1, item->y1, item->x2, item->y2);
-#endif
if (ethi->sort_info) {
int length = e_table_sort_info_grouping_get_count(ethi->sort_info);
@@ -831,6 +826,8 @@ ethi_end_resize (ETableHeaderItem *ethi, int new_size)
e_table_header_set_size (ethi->eth, ethi->resize_col, new_size);
ethi->resize_col = -1;
+ ethi->resize_guide = GINT_TO_POINTER (0);
+
ethi_request_redraw (ethi);
}
@@ -947,6 +944,7 @@ ethi_event (GnomeCanvasItem *item, GdkEvent *e)
if (ethi->resize_guide == NULL){
/* Quick hack until I actually bind the views */
ethi->resize_guide = GINT_TO_POINTER (1);
+
gnome_canvas_item_grab (item,
GDK_POINTER_MOTION_MASK |
GDK_BUTTON_RELEASE_MASK,