diff options
author | Pavel Cisler <pavel@eazel.com> | 2000-07-18 22:14:16 +0000 |
---|---|---|
committer | Pavel Cisler <pce@src.gnome.org> | 2000-07-18 22:14:16 +0000 |
commit | c030351f9c79604c012e359d6966de2918bf2f21 (patch) | |
tree | 74ecabac43a8af6cc1cc7501daf9a2724bc032c2 /libnautilus-private/nautilus-list.c | |
parent | f8c0f0a9e84d81dadd840dca1353e465efb856b7 (diff) | |
download | nautilus-c030351f9c79604c012e359d6966de2918bf2f21.tar.gz |
Update the colors before each draw to deal with background color changes.
2000-07-18 Pavel Cisler <pavel@eazel.com>
* libnautilus-extensions/nautilus-list.c: (nautilus_list_draw),
(nautilus_list_expose):
Update the colors before each draw to deal with background color
changes. I had it listen to appearance_changed signals but this
is way more robust.
Diffstat (limited to 'libnautilus-private/nautilus-list.c')
-rw-r--r-- | libnautilus-private/nautilus-list.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-list.c b/libnautilus-private/nautilus-list.c index 4b5b681e5..328cb3942 100644 --- a/libnautilus-private/nautilus-list.c +++ b/libnautilus-private/nautilus-list.c @@ -282,7 +282,6 @@ static int insert_row (GtkCList *l int row, char *text[]); - NAUTILUS_DEFINE_CLASS_BOILERPLATE (NautilusList, nautilus_list, GTK_TYPE_CLIST) static guint list_signals[LAST_SIGNAL]; @@ -2294,6 +2293,8 @@ nautilus_list_draw (GtkWidget *widget, GdkRectangle *area) clist = GTK_CLIST (widget); + nautilus_list_setup_style_colors (NAUTILUS_LIST (widget)); + if (GTK_WIDGET_DRAWABLE (widget)) { int border_width; border_width = GTK_CONTAINER (widget)->border_width; @@ -2324,6 +2325,8 @@ nautilus_list_expose (GtkWidget *widget, GdkEventExpose *event) clist = GTK_CLIST (widget); + nautilus_list_setup_style_colors (NAUTILUS_LIST (widget)); + if (GTK_WIDGET_DRAWABLE (widget)) { gtk_draw_shadow (widget->style, widget->window, |