Skip to content

Commit af80033

Browse files
committed
Remove unnecessary casting
1 parent 7c9784b commit af80033

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/headerbarui.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ void window_init_hook (void *userdata) {
465465
float volume = deadbeef->volume_get_min_db()-deadbeef->volume_get_db();
466466
g_assert_false((volume>0));
467467
gtk_scale_button_set_adjustment(GTK_SCALE_BUTTON (volbutton),
468-
gtk_adjustment_new (volume, 0, (int)-deadbeef->volume_get_min_db (), 5, 5, 0));
468+
gtk_adjustment_new (volume, 0, -deadbeef->volume_get_min_db (), 5, 5, 0));
469469

470470
gtk_widget_show(volbutton);
471471

@@ -535,7 +535,7 @@ headerbarui_volume_changed(gpointer user_data)
535535
GSignalMatchType mask = (GSignalMatchType)(G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_DATA);
536536
GQuark detail = g_quark_from_static_string("value_changed");
537537
g_signal_handlers_block_matched ((gpointer)volbutton, mask, detail, 0, NULL, NULL, NULL);
538-
gtk_scale_button_set_value( GTK_SCALE_BUTTON (volbutton), (int)-volume );
538+
gtk_scale_button_set_value( GTK_SCALE_BUTTON (volbutton), -volume );
539539
g_signal_handlers_unblock_matched ((gpointer)volbutton, mask, detail, 0, NULL, NULL, NULL);
540540

541541
return FALSE;

0 commit comments

Comments
 (0)