[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gcmd-dev] Fix for strange atrifacts with horizontal scrolling (bug 3098
From: |
A. Gordon |
Subject: |
[gcmd-dev] Fix for strange atrifacts with horizontal scrolling (bug 309877) |
Date: |
Wed, 29 Mar 2006 00:28:03 +0200 |
User-agent: |
Thunderbird 1.5 (X11/20051201) |
Hello,
This patch fixes Bug 309877 – Scrolling with horizontal scrollbar
distorts view of selected file.
(http://bugzilla.gnome.org/show_bug.cgi?id=309877)
Not the cleanest fix, I admit - this is more of a bypass: when the list
is horizontally scrolled, it forces a redraw of the list.
Sooner or later (probably later), we'll have to replace GtkClist (which
is deprecated) with GtkTreeView
(http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeView.html) - This
will enable us to do much more, display-wise.
Assaf.
--- gnome-commander-iv/src/gnome-cmd-clist.c 2006-03-28
05:30:45.000000000 +0200
+++ gnome-cmd-build/src/gnome-cmd-clist.c 2006-03-29
00:15:02.000000000 +0200
@@ -537,6 +537,11 @@ draw_row (GtkCList *clist,
/*******************************************
* END OF TEST
****/
+static void
+on_hadj_value_changed (GtkAdjustment *adjustment, GnomeCmdCList *clist)
+{
+ gtk_widget_draw(GTK_WIDGET(clist),NULL);
+}
static void
on_scroll_vertical (GtkCList *clist,
@@ -559,6 +564,10 @@ on_realize (Gtk
GTK_WIDGET_UNSET_FLAGS (
clist->column[i].button, GTK_CAN_FOCUS);
}
+ if (GTK_CLIST(clist)->hadjustment) {
+
gtk_signal_connect_after(GTK_OBJECT(GTK_CLIST(clist)->hadjustment),
"value-changed",
+ GTK_SIGNAL_FUNC(on_hadj_value_changed), clist);
+ }
}
/*******************************
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gcmd-dev] Fix for strange atrifacts with horizontal scrolling (bug 309877),
A. Gordon <=