diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/metadata-widget.c | 5 | ||||
-rw-r--r-- | src/play-button.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/metadata-widget.c b/src/metadata-widget.c index c98877f..7179014 100644 --- a/src/metadata-widget.c +++ b/src/metadata-widget.c @@ -175,11 +175,6 @@ metadata_widget_finalize (GObject *object) G_OBJECT_CLASS (metadata_widget_parent_class)->finalize (object); } -static void metadata_widget_style_changed_cb(GtkWidget *widget, - gpointer user_data) -{ - -} /** * We override the expose method to enable primitive drawing of the diff --git a/src/play-button.c b/src/play-button.c index 31cdf5a..2ab5fc8 100644 --- a/src/play-button.c +++ b/src/play-button.c @@ -796,7 +796,10 @@ _color_rgb_to_hls (gdouble *r, else s = (max-min)/(2-max-min); - delta = max -min; + delta = (max -min) != 0 ? (max -min) : 1; + + if(delta == 0) + delta = 1; if (red == max) h = (green-blue)/delta; else if (green == max) |