@@ -2477,11 +2477,16 @@ dt_thumbtable_t *dt_thumbtable_new()
24772477 G_CALLBACK (_event_button_release ), table );
24782478
24792479 // we register globals signals
2480- DT_CONTROL_SIGNAL_CONNECT (DT_SIGNAL_COLLECTION_CHANGED , _dt_collection_changed_callback , table );
2481- DT_CONTROL_SIGNAL_CONNECT (DT_SIGNAL_MOUSE_OVER_IMAGE_CHANGE , _dt_mouse_over_image_callback , table );
2482- DT_CONTROL_SIGNAL_CONNECT (DT_SIGNAL_ACTIVE_IMAGES_CHANGE , _dt_active_images_callback , table );
2483- DT_CONTROL_SIGNAL_CONNECT (DT_SIGNAL_CONTROL_PROFILE_USER_CHANGED , _dt_profile_change_callback , table );
2484- DT_CONTROL_SIGNAL_CONNECT (DT_SIGNAL_PREFERENCES_CHANGE , _dt_pref_change_callback , table );
2480+ DT_CONTROL_SIGNAL_CONNECT (DT_SIGNAL_COLLECTION_CHANGED ,
2481+ _dt_collection_changed_callback , table );
2482+ DT_CONTROL_SIGNAL_CONNECT (DT_SIGNAL_MOUSE_OVER_IMAGE_CHANGE ,
2483+ _dt_mouse_over_image_callback , table );
2484+ DT_CONTROL_SIGNAL_CONNECT (DT_SIGNAL_ACTIVE_IMAGES_CHANGE ,
2485+ _dt_active_images_callback , table );
2486+ DT_CONTROL_SIGNAL_CONNECT (DT_SIGNAL_CONTROL_PROFILE_USER_CHANGED ,
2487+ _dt_profile_change_callback , table );
2488+ DT_CONTROL_SIGNAL_CONNECT (DT_SIGNAL_PREFERENCES_CHANGE ,
2489+ _dt_pref_change_callback , table );
24852490 gtk_widget_show (table -> widget );
24862491
24872492 g_object_ref (table -> widget );
@@ -2504,7 +2509,8 @@ void dt_thumbtable_scrollbar_changed(dt_thumbtable_t *table,
25042509 if (table -> mode == DT_THUMBTABLE_MODE_FILEMANAGER )
25052510 {
25062511 // get first visible line position
2507- const float first_line = ((table -> offset - 1 ) / table -> thumbs_per_row )* table -> thumb_size - table -> thumbs_area .y ;
2512+ const float first_line = ((table -> offset - 1 ) / table -> thumbs_per_row )
2513+ * table -> thumb_size - table -> thumbs_area .y ;
25082514
25092515 _move (table , 0 , first_line - y * table -> thumb_size , TRUE);
25102516 }
0 commit comments